cardgame-coursework's People
cardgame-coursework's Issues
Learn and implement JUnit testing
restart entry when not enough cards in the list
Clean up instantiation of numPlayers and packFile in CardGame main
Every action a player takes goes through the mediator.
the player no longer has the to from decks but rather takes its turn through the mediator. the take turn function should be synchronised so that every player takes their turn at the same time
thread safety
clear up handling of writing to file
Preferred denomination strategy
Output all actions to file per player, plan in more detail
Distribute cards among players and decks
Each player has 4 cards
Rest go to decks
Round robin fashion
End game Deck output file
Cover page
Clean up CardGame main
Write Game start (?) function
output class for writing to file
Figure out valid design pattern and refactor code to reflect
Write Game constructor
- Game constructor that creates Card(s) and puts them into an ArrayList as a property of Game
- Instance the given amount of players as a property of Game
- Manage non-zero index players
- Manage increasing player number in property of Player
- Instance the given amount of Decks
Separate threads for main game function
Define 'from' Deck and 'to' Deck in initialization per player
validate formatting of pack.txt
- 8n cards
- all non-neg
Add more to Deck class
Initial win can be any 4 similar cards?
Comments & Docstrings
one mediator???
Do TODO's appear there too
Development log
Add more to Player class
- ArrayList of Card(s) initially empty
- Player name/number/id
Design document reflecting chosen design pattern
Existential dread
writer given to mediator
Initial win check
Validate card to player ratio
Unit testing using JUnit (Learn and Implement)
Validate pack location function
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.