Skip to content

ShigekiKarita/d-reversi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D-Reversi

Build Status codecov Dub version

D language implementaion of Reversi

You can play it by $ dub

$ dub
Running ./d-reversi 
     0  1  2  3  4  5  6  7
  0[ ][ ][ ][ ][ ][ ][ ][ ]
  1[ ][ ][ ][ ][ ][ ][ ][ ]
  2[ ][ ][ ][ ][ ][ ][ ][ ]
  3[ ][ ][ ][x][o][ ][ ][ ]
  4[ ][ ][ ][o][x][ ][ ][ ]
  5[ ][ ][ ][ ][ ][ ][ ][ ]
  6[ ][ ][ ][ ][ ][ ][ ][ ]
  7[ ][ ][ ][ ][ ][ ][ ][ ]

turn: black(x). stat: [empty:60, white:2, black:2]
>>> input '{row} {col}\n'
1 1
>>> Error: invalid action. retry.
4 2
     0  1  2  3  4  5  6  7
  0[ ][ ][ ][ ][ ][ ][ ][ ]
  1[ ][ ][ ][ ][ ][ ][ ][ ]
  2[ ][ ][ ][ ][ ][ ][ ][ ]
  3[ ][ ][ ][x][o][ ][ ][ ]
  4[ ][ ][x][x][x][ ][ ][ ]
  5[ ][ ][ ][ ][ ][ ][ ][ ]
  6[ ][ ][ ][ ][ ][ ][ ][ ]
  7[ ][ ][ ][ ][ ][ ][ ][ ]
turn: white(o). stat: [empty:59, white:1, black:4]
>>> input '{row} {col}\n'
^C