akhercha / werewolves-of-cairo Goto Github PK
View Code? Open in Web Editor NEWThe Werewolves of Miller's Hollow using Dojo.
The Werewolves of Miller's Hollow using Dojo.
We are using the dojo-starter web folder but we haven't check anything inside yet. We should go through it & adapt it to our needs (maybe use Vue?) & be sure that everything works correctly.
web/
is checkedweb/
is cleaned for our needsweb/
is ready for the next implementations of the game.The CI should include a step that deploys the website located in web/
after every pushes to main.
For example, see rollyourown.
Now that the design are roughly documented, let's implement them.
We will start by implementing the overall models & the Lobby system so players can join/leave/create lobbies & create a new game.
src/systems
,Blocking: #12
As soon as the compositions are created, we can assign random roles to players using the Randomizer
entity.
src/systems/game.cairo
file has been updated & assign random roles for each player.After the implementation of the Lobby & the main Game models / systems, we will have to work on the game loops. There's stil uncertainty on how it will exactly works so we have to figure this out.
The lobby system have been included & tested.
We can then now implement the Game system & test it.
src/systems/game.cairo
tests/systems/test_game.cairo
Learn more about Dojo and create a document with every components needed (Models etc...)
Now that the Lobby system have been implemented we need to test it carefully.
That means creating new Models & checking their state after the system calls.
Currently the CI only runs sozo build
without sozo test
(because we have 0 tests basically).
Once the unit tests have been created, we need to re-add them in the CI.
The docs are not up to date with the latest changes & things to come, they need to be updated.
docs
Cairo released components not so far ago.
We should check if they work with dojo contracts, if yes we should start by creating a component to access the .world() parameter.
Checked + Added in code if possible.
Werewolves of Cairo version: 0.0.1
Current behavior: sozo test
runs two times the same tests
Expected behavior: Tests should run only once
Steps to reproduce: Run sozo test
Related code: N/A
Other information: Probably a bug with sozo
, need to investigate
Depending on the number of players, we should have certain compositions possibles.
For example, for only 3 players, the composition might be:
It must be done for every number between 3 & 12. We can probably add multiple compositions possibles sometimes (or do it later).
src/data/compositions.cairo
Create a Figma for the team & start thinking about which pages would be needed for the game (for example: login, home, lobby creation etc...)
Multiplayer game so we need names for players.
Profile
=> profile of a player wallet with avatar, name etc...Waiter
=> player waiting in lobby,Player
=> player in game.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.