Coder Social home page Coder Social logo

bulls-cows's Introduction

Bulls-Cows

This is the ASCII version of the game of Bulls and Cows.
Language : C

#The rules of the game

The user initially enters the given word, then after which, the player has to guess the word , with the help of the clues given.
The clues are given in the form of the number of Bulls and Cows.

If the position of the letter of the given word ( the word that the user enters) and the guess word (the word that the player enters) coincide, then it is called a 'Bull'. Else it is called a 'Cow'.

let me say , The given word is "foul"

CASE 1: my guess word is "foal"
here , I have 3 Bulls and 0 Cows , as f,o,l coincide as to the exact positions of the given word.

CASE 2: my guess word is "olaf"
here, I have 3 Cows and 0 Bulls, as f,o,l are in the word but in different positions.

CASE 3: my guess word is "abcd"
We have 0 Cows and 0 Bulls.

I have put an easy level for this game, which is only 3 letters , Where you get to know the positions of the cows and the bulls also, so that it helps in the better understanding of the game.

The intermediate, hard and the expert levels have 4,5,6 letters respectively and these will give the number of bulls and cows only, but not the positions.

bulls-cows's People

Watchers

James Cloos avatar Raghavendra Gautam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.