This program creates the Dollar Game. In this game, the user left clicks or right clicks on a node. A left click will send 1 dollar to each of the connected nodes. A right click will receive 1 dollar from each of the connected nodes. The objective of the game is to get each node to have 0 or more dollars. The starting node values are defined by a text file of the format: 6,1,1,1 1,-3,1,1 1,1,0,0 1,1,0,-2 Each row defines a new node. The diagonal elements are the node values. A 1 denotes which nodes the current node is connected to.
-
Notifications
You must be signed in to change notification settings - Fork 0
KyleKoon/DollarGame
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published