averycrespi / thinktank Goto Github PK
View Code? Open in Web Editor NEWA 2-player strategy game inspired by Conundrum
Home Page: https://thinktank.crespi.dev
License: MIT License
A 2-player strategy game inspired by Conundrum
Home Page: https://thinktank.crespi.dev
License: MIT License
dev.thinktank-server.averycrespi.com
*
)thinktank-dev
)Singleplayer:
game.js
into logic/
logic/
unit testsMultiplayer:
server.ts
and yarn serve
scriptShow controls, cheatsheet
?share=false
parameter to URL of shared link[matchID, player, credentials]
objects to local storageAlso show package version: import {verson} from "./package.json"
Logo, screenshot?
package.json
versionhistory: Array<string>
to G
This screen flashes on screen for a fraction of a second:
Then the game starts without waiting for an opponent
Same behavior using alternate browser through different IP
After v1.0.0 is released
Playing again
POST /games/{name}/{id}/playAgain
{name} (required): the name of the game being played again.
{id} (required): the ID of the previous finished room.
Given a previous room, generates a room ID where users should go if they want to play again. Creates this new room if it didn’t exist before.
Accepts these parameters:
playerID (required): the player ID of the player on the previous game.
credentials (required): player’s credentials.
numPlayers (optional): the number of players. Defaults to the numPlayers value of the previous room.
setupData (optional): custom object that was passed to the game setup function. Defaults to the setupData object of the previous room.
Returns nextRoomID, which is the ID of the newly created room that the user should go to play again.
Ideas:
Allows rematches, but causes several breaking API changes
Like https://www.getpapercss.com/
Inspiration: https://www.getpapercss.com/img/geometry2.png with token icons instead of shapes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.