rats's People
rats's Issues
Implement choosing banquet goals
Banquet goals can be rolled, and if a duplicate is chosen, the host has the ability to choose the next banquet goal. This functionality should be implemented as a move.
Implement the different phases/stages of the game
This game can be split into multiple different phases/stages, each with their own restricted set of moves.
A possible implementation of this would be as follows:
-
1. A phase for rolling the next banquet goal.
- If the banquet goal has already been picked, the Host becomes the active player, and can select a banquet goal of their choice.
-
2. A phase for each scavenging, repeated three times.
- A function to roll dices in
onBegin
. - A move that allows the player to make their option based on the dices rolled.
- A function to roll dices in
-
3. A phase for each resource, which will set the active players based on whether the players outdid the Host or not.
-
These stages only have one move each, so that only the correct actions can take place.
Resource Action cocktail swords useCocktailSwords()
baubles useBaubles()
straw buildNest()
crumbs/rags/flower makeDish()
/makeDecoration()
-
-
4. Phases from 1 to 3 are repeated 5 times.
- A coin is flipped to determine if the ship sinks.
- 6. A phase will be entered with the host as the active player. if there's a tie, the host can then make a move that will decide who the winner is. If there is no tie, the game will end immediately.
Resource Abilities
Items
-
Cocktail Swords(Dice value:1)
- Request supplies from another player
-
Baubles(Dice value:2)
- Gain 5 of any items
-
Straw (Dice value:3)
- Build a nest that doubles the scavenging
-
Crumbs (Dice value:4)
- Cook a DISH
-
Rags(Dice value:5)
- sew a DECORATION
-
Flowers (Dice value:6)
- choose between a dish or decoration. player with the highest flower becomes the new host
Grandiose (10)
Banquet Goal
These are the banquet goals that we need to implement.
Put your name next to the goal to assign the implementation of that goal to you.
- Cheap(2) - YX
- Composed(3) -jac
- Greedy(4) - YX
- Refined(5) - Wendy
- Generous(6) - YX
- Plush(7) -jac
- Swanky(8) - Wendy
- Dapper (9) - Wendy
- Grandiose(10) -jac
- Elegant(11) - Wendy
- Dainty (12) -jac
Implement UI in Board.tsx
UI Implementation
UI layout refers to https://app.diagrams.net/#G19XumnLL2zMfn-2DR9Sru0gpjsbuiRblH
- Board
- Banquet Container (YX)
- Resources Container (J)
- Main Container (W)
- Round Number Container (W)
- Phase Container (W)
- Dishes & Decorations Container (YX)
Stop invalid moves
Currently, these moves do not check for validity:
- addResource
- Because the available resources are picked based on the value of two dice, the player should only have the option of adding to one of two resources
Follow this to reject moves: https://boardgame.io/documentation/#/immutability?id=invalid-moves
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.