mattlyons0 / dicegame Goto Github PK
View Code? Open in Web Editor NEWA Golf Game using Dice
A Golf Game using Dice
Decide how we want to create a use case diagram. What did you guys use for that assignment.
I used Draw.io. Its not super great, but not awful. Basically a rich editor to draw lines and stuff which can create a pdf we can put in the repo.
The constructor is missing a javadoc
make sure you address what should be happening when you press start without creating a character.
I think the trello needs to be public so they can grade the backlog
This is how the game will be played:
Launch App
Create Players (You can't start without creating at least one)
Click Play Button
Choose Number of Holes (anything > 1)
Each hole will be a random distance
Each player will take turns (furthest away goes soonest)
Once each player scores there will be a next hole button
Upon finishing all holes a sort of scorecard will be displayed. Bare minimum this must display total number of hits and who won. It would be nice (and not hard) to be able to display a scorecard thing that would show how many hits it took each player on each turn see generic golf scorecard (Of course we wouldn't have a par)
Thats it.
What this would entail from the logic:
Either set the number of holes or dynamically expand the statistics data once a method is called to go to the next hole
Calling the method to go to a hole should create a randomly distanced hole
There should be a method to determine who's turn it is
Taking a turn should either assume it is the person's turn who the method above specifies or take in the index of the person
Additionally for the players:
There must be a way to add players
There must be a way to store player names
There could be a way to store player colors (I'll do this if I feel like it)
There must be a way to get the player names
Player names must be stored on the disk and loaded upon startup.
For the scorecard:
There needs to be a way to get all of the data which would be on the scorecard.
This all needs to be stored and loaded upon startup.
Additionally
EVERYTHING NEEDS TO BE TESTED, JUNIT TESTED MAKING A MAIN METHOD DOESNT COUNT!!
NO 1 LETTER VARIABLES
NO BREAKS/RETURNS IN LOOPS, NO RETURNS BEFORE THE END OF THE FUNCTION (I'm slightly guilty of this too, I'll need to revise my code a bit)
DOCUMENTATION!!
This is when calling currentPlayer() after it. Related to the fact that roll() and hitTheBall() aren't player specific and probably don't modify the correct data structures.
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.