Skip to content

dmt94/checkers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(FRUIT) CHECKERS


GAME DESCRIPTION

A browser mini game of checkers using fruit themed checker pieces.

  • GAMEPLAY

Players move a checker piece each turn, with the objective of capturing all the opponent's pieces.

  • MOVEMENT
    • Normal pieces can only move forward diagonally or anti-diagonally.
    • Pieces need to jump over an opponent's piece once encountered
DETERMINING RESULTS
  • WINNER
    • First player to capture all opponent pieces
    • In this browser game, the mode is set to easy where you just have to capture two of the opponent's pieces!

SCREENSHOTS:

(SOME) FUTURE APP FEATURES:
  • As a player, having an option for a 2 player game or a game against a computer would be fun, because it give a more well-rounded gameplay experience.
  • As a player, I would appreciate a day/night mode button toggle because it would be beneficial to prevent some eye strain.

TECHNOLOGIES USED:
  • HTML5
  • CSS
  • JavaScript
  • NPM (Node Package Manager) via CDN for emoji confetti

GETTING STARTED:

Fruit Checkers is deployed on GitHub Pages: GAME LINK

Architecture and Challenges
  • Classes
    • A majority of the code is written using classes, taking advantage of encapsulation.
      • Personally, it was easier to follow the flow of the game when the variables involved are encapsulated into specific methods belonging to classes
  • Bugs
    • Fixing bugs took a majority of the project time. It was challenging to reproduce a particular bug in my game where a glitch would occur if another checker piece was clicked during a player's turn.

  • The issue seemed to have to do with the suggestion moves (the square divs) of the previous turn still maintaining its event listener

FUTURE IMPROVEMENTS:
  • As a player, having an option for a 2 player game or a game against a computer would be fun, because it give a more well-rounded gameplay experience.

  • A day/night mode button toggle because it would be beneficial to me if I experience eye strain.

  • Be able to pick different pieces on the main menu would be a fun addition

About

A fruit themed checkers mini-game created using vanilla JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published