Skip to content

mathieueveillard/othello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

othello-js

Rules

Othello is a board game for two players. This kata requires you to write a function that, given the current board and the current color, computes the list of all cells where a disk of the given color can be placed.

Othello (Wikipedia)

Assuming the given board:

  A B C D E F G H
1 . . . . . . . .
2 . . . . . . . .
3 . . . . . . . .
4 . . . W B . . .
5 . . . B W . . .
6 . . . . . . . .
7 . . . . . . . .
8 . . . . . . . .

Blacks start and can place a disk in the following cells:

D3, F5, E6, C4

Installation

git clone https://github.com/mathieueveillard/othello-js.git
cd othello-js
npm install

Development

npm test

About

Othello kata in TypeScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published