Giter Site home page Giter Site logo

mayank123-code / dead-and-wounded Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jemimaabu/dead-and-wounded

0.0 0.0 0.0 69 KB

A number guessing game (the original name is Bulls and Cows but I like violence so lol)

Home Page: https://jemimaabu.github.io/dead-and-wounded

License: MIT License

HTML 45.79% JavaScript 27.45% CSS 26.77%

dead-and-wounded's Introduction

dead-and-wounded

A number guessing game.

The purpose of the game is to guess the random number generated by the computer.

If your guess has the right number in the right position, it registers as +1Dead.

If it has the right number but in the wrong position, it registers as +1Wounded.

Example: Computer generates a random number 4123 and you guess 2167 so it returns 1 dead, 1 wounded.

How To Play

  1. Choose a difficulty level (Easy - 4 numbers, Medium - 5 numbers, Hard - 6 numbers).
  2. Start guessing.
  3. Use the responses to figure out the computer's number.

Rules

  • The length of the number must correspond to the level chosen i.e. 1234 for Easy, 12345 for Medium, 123456 for Hard
  • The input must consist only of numbers (no letters or special characters)
  • The number should not have duplicate characters (no repeated numbers e.g. 0012, 1656 etc)

Open Source

This project is open to contributions from the public. Basically, if you're a beginner, think of it as your introduction to open source. And if you've been open sourcing for a while, here's another contribution to add to your belt.

Contributing

Checkout CONTRIBUTING.md for details on creating pull requests and solving issues and all that jazz.

License

This project is licensed under the MIT License - see the LICENSE file for details.

dead-and-wounded's People

Contributors

jemimaabu avatar hbindiya avatar kounelisagis avatar doougui avatar josephting avatar puranik9 avatar mayank123-code avatar smollet777 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.