mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 07:10:42 -08:00
Document a bonus option to view the game data as a tree!
This commit is contained in:
@@ -10,6 +10,8 @@ import java.util.stream.Collectors;
|
||||
* Converted from BASIC to Java by Aldrin Misquitta (@aldrinm)
|
||||
* The original BASIC program uses an array to maintain the questions and answers and to decide which question to
|
||||
* ask next. Updated this Java implementation to use a tree instead of the earlier faulty one based on a list (thanks @patimen).
|
||||
*
|
||||
* Bonus option: TREE --> prints the game decision data as a tree to visualize/debug the state of the game
|
||||
*/
|
||||
public class Animal {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user