Skip to content

martin-luo/AI_PROJ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI_PROJ

Project Members

  • An Luo
  • Bingfeng Liu

Project Description

  • Developing AI to play boardgame

##Rules of Boardgame

  • Only two players , one is called 'White' ,the Other one is 'Black'
  • Board has a size of N*N which N is greater than 5 (i.e. N > 5)
  • Top left corner is (0,0) , Bottom right coner is (N-1,N-1)
  • Edges does not count as part of captured territory
    • Only free cells and opponent's cells count as captured cell
    • Pieces can't be placed in
  • Board is read from stdin (i.e. java Main < input)

Input Data Format

  • First line is dimension of board
  • 'W' == White
  • 'B' == Black
  • '-' == Captured Cell
  • '+' == Free Cell

Output Format

First Line

  • 'WHITE' ---> White is win
  • 'BLACK' ---> Black is win
  • 'Draw' ---> White and Black captured same number of cells
  • 'None' ---> Game is not finished

Second Line

  • Number of cells captured by White

Third Line

  • Number of cells captured by Black

Have Fun and Jiayou !

Keep calm Image of YAO

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published