NPM package with common Daniel's Connect4 functionality.
- Introduced
playerPic
andopponentPic
inInitialMessage
model
- Introduced
Themes
enum
- Updated
isInitialMessage
to also test fordimensions
- Change models to interfaces
- Delete
SkipTurnMessage
- Add more colors to
Coin
enum
- Added
dimensions
property toInitialMessage
model
- Added
PlayerSettings
model
- Added dimensions getter in default class:
getDimensions()
- Removed
isTokenValid
property toPlayerInfo
model
- Added
isTokenValid
property toPlayerInfo
model
- Added
dimensions
property toPlayerInfo
model
- Changed
BoardLogic
constructor to accept just one dimension type parameter
- Add
BoardDimensions
enum
- Add board setters
- Provide public
resetBoard
method inBoardLogic
class
- Dropped
board
parameter for pending methods inBoardLogic
class
- Added
dimensions
constant - Modified
BoardLogic
class to allow multiple board dimensions
- Included
PlayerStats
andPlayerInfo
models
- Included docs which can be retrieved using local server
- Removed
PlayerNameMessage
model - Included
playerName
inInitialMessage
model
- Reorganised exports to be imported in a single line
- Introduced
skipTurnMaxWait
constant
- Added
color
check forisActionMessage()
method - Introduced
ErrorMessage
model
- Added
color
property toActionMessage
model
- Removed inactivity model
- Introduced
switchTurn()
function
- Introduced
DisconnectMessage
model
- Added
GameMessage.isCurrentTurnMessage()
method
- Fixed export for
CurrentTurnMessage
model
- Added
CurrentTurnMessage
model
- Renamed instances of Dot to Coin
- Set default exports
- Introduced
randomiseColor()
function
- Dot enum reverted to numerical values abstracting away from front-end
- Sort issue with build by prebuilding and republishing
- Include
PlayerNameMessage
model
- Include network data models
- Sort issue with build by prebuilding and republishing
- Included
putDot()
method
- Attempt to fix library entry
- Basic functionality ported to package