groxio-learning / barquinhos Goto Github PK
View Code? Open in Web Editor NEWMultiplayer destructive bingo for grownups
Multiplayer destructive bingo for grownups
Currently, a user can cheat by clicking all the squares on the opponent board before their opponent has taken any turns. Instead, players should be forced to take turns when playing the game.
As a player
When the game starts
And a player makes the first shot
Then that player cannot make another shot until someone else has made a shot
A player should not be able to make more than shot before another player has their turn
Board
module to track which player made the last shot# a function that stores the player that just made a shot
Board.last_shooter(board)
=> %Player{}
# a function that takes an arg of a player and returns true if that person is the "last shooter"
Board.is_last_shooter(board, player)
=> true/false
Board.last_shooter
(we will prob. want a reducer here) for everyone . This means we can hook into the shot_fired
event broadcast.Board.is_last_shooter
is true for themAs a user
When I fire a shot against an opponent
Then that shot is displayed on my opponent's board as a hit or a miss
And the shot is displayed on my own view of my opponent's board as a hit or a miss
shots_received
list and display the shot with the appropriate color in the browserAs a user
When I receive a shot
And that shot is a hit
And that hit strikes my last un-hit point
Then the game is over for that player
What does it mean for the game to be over? Keep in mind that more than two players can play the game. So, if one player lost that doesn't necessary mean the other player one. A player looses when they have no more points to get hit and a player wins when they are the last player standing. So, if there are only two players, and one loses, then the other did win. But if there are more than two players, then one loses and the others are still in the game.
Here are some ideas we might build:
Some more ToDo items that came out of "Group Attack" (@SophieDeBenedetto Mohammad @jacquelineIO @graceinwonderland)
Next time...
We'd like to write up some pieces of documentation that will allow other mentors and mentees to go through the process of building the Barquinhos app to learn more about Elixir, Phoenix, and LiveView. We''ll produce the following docs:
/game
and see some welcome messageWe'll write up each document with some sections that outline deliverables like this issue does #37. We can leave off technical implementation details for now though.
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.