Name: tic-tac-toe
Owner: Rolling Scopes School
Description: Tic Tac Toe game task
Created: 2017-01-30 12:44:21.0
Updated: 2017-02-01 23:06:10.0
Pushed: 2018-04-23 16:19:48.0
Homepage: null
Size: 7
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
?? DO NOT SUBMIT PRS WITH SOLUTIONS TO THIS REPO ??
Your task is to implement TicTacToe
class
getCurrentPlayerSymbol()
should return x
or o
nextTurn(row, col)
should properly update class state (change current player, update marks storage etc.)
isFinished()
should return true if game is finished (e.g. there is a winner or it is a draw)
getWinner()
should return winner symbol (x
or o
) or null if there is no winner yet
noMoreTurns()
should return true if there is no more fields to place a x
or o
isDraw()
should return true if there is no more turns and no winner
getFieldValue(row, col)
should return matrix[row][col]
value (if any) or null
npm install
test
start
open http://localhost:8080
© R1ZZU