mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -08:00
Add a couple TODOs
This commit is contained in:
@@ -2,6 +2,7 @@ import java.util.Collections;
|
|||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
// TODO fill out the javadoc for this class
|
||||||
public class Player {
|
public class Player {
|
||||||
|
|
||||||
private int playerNumber; // e.g. playerNumber = 1 means "this is Player 1"
|
private int playerNumber; // e.g. playerNumber = 1 means "this is Player 1"
|
||||||
|
|||||||
@@ -20,6 +20,15 @@ public class GameTest {
|
|||||||
private StringWriter out;
|
private StringWriter out;
|
||||||
private Game game;
|
private Game game;
|
||||||
|
|
||||||
|
// TODO See if it's possible to initialize test data in a more readable way.
|
||||||
|
// e.g.
|
||||||
|
// playerGets(Card)
|
||||||
|
// playerGets(Card)
|
||||||
|
// playerDoes(String)
|
||||||
|
// playerGets(Card)
|
||||||
|
// playerDoes(String)
|
||||||
|
// initGame(g) // Creates the deck and initializes 'in' based on values accumulated from prior calls to playerGets and playerDoes.
|
||||||
|
|
||||||
private void givenStubGame() {
|
private void givenStubGame() {
|
||||||
in = new StringReader("");
|
in = new StringReader("");
|
||||||
out = new StringWriter();
|
out = new StringWriter();
|
||||||
|
|||||||
Reference in New Issue
Block a user