rolling-scopes-school/tic-tac-toe

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Tic Tac Toe

?? DO NOT SUBMIT PRS WITH SOLUTIONS TO THIS REPO ??

Description

Your task is to implement TicTacToe class

Methods: 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

Prerequisites
Run tests
test
Run in browser
start

open http://localhost:8080


© R1ZZU


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.