Giter Site home page Giter Site logo

tictactoe's People

Contributors

kuzi117 avatar snadi avatar

Watchers

 avatar  avatar

tictactoe's Issues

Feature 2: Scoreboard

add a scoreboard that keeps track of how many games were won, lost, tied by each player.

Feature 1: Tie condition

there is currently no check if there is a tie in the game (i.e., there is no longer a chance for either player X or O to win). Implement such functionality, where after a move, a message will notify the player if the game is in a tie and will end the game.

Invalid input is an ungraceful crash

  1. Start game.
  2. Arrive at player input prompt.
  3. Different options cause different errors:
    a. Enter causes an integer parse exception (despite there being nothing to split on, somehow we make it as far as the parse and don't die on the index operation).
    b. A single integer (with or without comma causes an indexing error)
    c. Invalid character (e.g. 1,2p) is a integer parse exception.

These can all be caught and fixed with relative ease.

Feature 3: Multiple Games

the game currently ends whenever a player wins. Change it so it doesn't terminate right away, but instead prompts the user whether they want to play another game or not. If yes, a new game will be started. If not, the program will display the current score board and then terminate.

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.