Giter VIP home page Giter VIP logo

backgammon's Introduction

backgammon

a backgammon app for 2 players (currently a hot mess)

Early stages of creating a backgammon application with basic/partial UI and logic. Gameplay and logic are still being sorted out and there are several bugs/conditions that need to be worked out. The new game button in the top left will initialize the board position and roll the dice (for red). Red blots can be clicked and moved to valid squares (currently can move an infinite amount as movement is not tallied).

Next on the todo list:

  • correct the activeblot issue (blot is not highlighted except when it is the 'ghost' blot left after all the blots hav ebeen moved from a point (see below))
  • correct issue with moving all blots from a point 'ghost blot' (one blot remains rendered on point even when blot array is empty)
  • complete code to remove a roll once it has been used (ie: a blot has been moved)
  • complete end turn and new roll

Lots more game logic is still required for various movement conditions (point is occupied by opponent, hitting opponent, etc). Bearing off blots and winning conditions also are yet to be started. This is my first vanilla Javascript project from scratch. Lots of learning and lots yet to do.

backgammon's People

Contributors

chriscoastal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.