| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
At the moment this script does not do much, it simply registers an
event listener to inform the server about when one of the clients
resigns the game which activates when someone clicks the "resign"
button. In the future this script will most likely house all the
client-side functionality related to the game.
|
|
|
|
|
|
|
|
| |
This enumeration contains all of the different Messages that can be
communicated between the clients and the server. The enum names should
make the meaning of each obvious enough, but they still have comments
besides them explaining who sends the message to who, and what the
message actually entails.
|
|
|
|
|
| |
This class represents a piece on a draughts board. Pretty obvious why
this would exist I think.
|
|
|
|
|
|
|
|
|
|
| |
The environment object holds basically all the information about the
state of all the games, statistics regarding games, etc.
The `minimumMoves` and `averageMoves` variables start out at infinity
just so that we have an easy way to check if they've actually been set
yet or not, since they won't be properly set before any games have
even been played.
|
|
|
|
|
|
|
| |
The previous version had a dark square as the upper left corner, but a
proper draughts board has a light square in the upper left, and we
don't want to look like monkeys that don't know the rules of the game
we're making.
|
|
|
|
| |
They are optional in javascript, so why waste screen space on them?
|
|
|
|
|
|
|
|
|
| |
This enumeration represents the two colors of the pieces on the board,
it should allow you to refer to a color as `Color.BLUE' or `Color.RED'
as opposed to having to use strings or random numbers or whatever. It
also means that if for whatever reason we decide to flip the positions
of blue and red or something similiar, it should be a very quick and
easy fix.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
routing functionality
|
| |
|
|\ |
|
| | |
|
|/
|
|
|
|
|
|
| |
All images have been moved to img/
All source code has been moved to src/
The game.html page now has a draughts board, a vertical seperator, an
imcomplete move history table, a resign button, and a move history
title.
|
|
|
|
|
|
| |
This commit introduces the basic HTML layout for the game screen
including the actual draughts board, the move history table, and the
resign button.
|
|\ |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|
|