Skip to content

ahung1709/project-1-checkers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project 1

Checkers

Description and background of the game

  • Setup: Checkers game is setup on a 8 x 8 chessbaord that consists of light square and dark square. Each players start with 12 pieces that can only be situated or moved on dark squares. (see Screenshot #1 below for initial setup)
  • Turn: Each player can move one piece in a turn. Once a piece is moved by a player, it will be another player's turn to make a move.
  • Move: A piece can either move one spot diagonally forward (toward opponent's side), or jump to second spots ahead if an opponent's piece sits on the immediate corner. The opponent's piece being jumped over is captured. (see Screenshot #2 below for potential move)
  • King: When a piece is moved to the furthest row towards opponent's side, it turns to a king piece. A king piece can move both foreward and backward. (see Screenshot #3 below for king piece)
  • Win: You win once all opponent's pieces are captured, and lose once all your own pieces are captured. (see Screenshot #4 below for a win)

Screenshots

Screenshot #1 - Initial setting

Screenshot #1

Screenshot #2 - A piece is selected, and possible moves are highlighted

Screenshot #2

Screenshot #3 - A piece turn to a king piece, and it can move backwards

Screenshot #3

Screenshot #4 - All pieces of player 'red' is captured, and player 'black' wins

Screenshot #4

Technologies Used

  • HTML
  • CSS
  • JavaScript

Getting Started

Click on the following link to play the Checkers game

Next Steps

The following functionality can be added

  • Allow player to make consecutive jumps and captures
  • Allow player to alter some game rules (e.g. jump to the third spot ahead as opposed to two spot ahead)
  • Allow player choose the color they like
  • Allow players to choose to play '1 player' game or '2 player' game
  • Allow player to play online with other players on the web
  • Add AI for '1 player' game
  • Get suggestion from AI
  • Log player's moves in a queue
  • Allow player to undo or redo a move
  • Log time to win, and determine whether users break their record
  • Add more special effects (e.g. flashing message when there is a win, or sound effects for a capture)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published