Skip to content

sitheleon/Bulls_and_Cows

Repository files navigation

DEVELOPED BY LEE SI HYEON / KHU DIGITAL CONTENTS

CODEIT Python project (https://www.codeit.kr/)

Python

Language : KR

How to Play


1. Download all .py files into one folder

2. open 숫자야구.py

3. debug or compile on IDE

Bull and Cows Rule:

• Each player writes a 4-digit secret number, with no repeated digits, which they must not let their opponent see.

• The players take turns trying to guess each other's secret number. After each guess, their opponent provides feedback about the number of matches: if they guess a correct digit in the correct position, it is called a "bull," while if they match a digit but in the wrong position, it is called a "cow."

For example, if your opponent's secret number is "1854" and you guess "4879," the feedback you will receive is: 1 bull and 1 cow ("8" is the bull, and "4" is the cow).

• The first person to reveal their opponent's secret number wins the game.

Rule source: https://www.maplesoft.com/support/help/Maple/view.aspx?path=MathApps/BullsAndCows&cid=974

About

CodeIt Project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages