Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WAVE 1 Complete: #5

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open

WAVE 1 Complete: #5

wants to merge 50 commits into from

Conversation

Trishthedish
Copy link

For: @PilgrimMemoirs && @CheezItMan
TRELLO BOARD

User Stories:

  1. As a user of the Tic-Tac-Toe game I CAN:
  • Create a new game: ✅
  • It will have an empty board of nine cells: ✅
  • It will start with the X player having the first move: ✅
  1. Specify up to two player names
  • We made design decision to not make a player an object in this wave. We did assign name automatically to playerX("Frida") & playerO("Harry").
  1. Get the current outcome of the game (X win, O win, tie, or undecided) ✅

  2. (OPTIONAL) View a printed version of the current game board for debugging purposes ✅

  • Running the following commands will allow you to see the status of the game:
npm run repl
var Game = require('game').default;
var game = new Game();
// X moves at spot [0][0] and will typically always return board game unless their is a winner. 
game.play(0,0); 
// but you can always use the following to see the board
game.board 
  1. As the 'active' player in a game I CAN:
  • Make a move by specifying an empty board cell ✅
  • It will mark the board in the given cell, using the mark for the 'active' player ✅
  • It will switch the 'active' player designation to the other player ✅
  1. As the 'active' player in a game I CANNOT:
  • Make a move by specifying a marked board cell ✅
  • Make a move after the game has already completed (either win or tie) ✅
    Making this one happen was hard but it was final logic we put into place.
  • Skip making a move ✅
  1. As the 'inactive' player in a game I CANNOT:
  • Make a move ✅
  • Skip making a move ✅

FROM: @Trishthedish && @laurenfb

Notes: We practiced some mad TDD skills on this project. We can proudly say we wrote each test prior to writing any code. 🎯⚡️🎉🔬
Played around with a whole new concept of magic square:

Trishthedish and others added 30 commits December 12, 2016 13:07
Griego wave1
constructor function for Game, 5 tests passing
tests for helloworld and incrementTurn; increment turn fx GREAT TEST DRIVEN DEVELOPMENT!
Used TDD to build tests for newly christened checkOccupied(). And als…
Added tests for play function. added logic for play function.
…lso added instance vars for magic square implementation
Added final diagonal check in tic-tac-toe functions.
…en and sipalyed instead of just returning board.
… play after someone has already won. Not dry, but quite sturdy\!
… they will not pass yet. Able to succesfully play a game of tic-tac-toe in repl. Game behaves as expected.
All looks as it should. Moving on to next feature. Functionality within browser.
…t I'm unable to get any of my click events to work.
…oing to branch off and play with another technique.
…ly because of location of where I'd put my board
…as able to change one thing in one place to make X and O be emoji's
…ered a new error in regards to determining winner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants