A simple implementation of a game resembling the Prisoners Dilemma scenario. This script simulates a game where each "prisoner" (represented by a number) attempts to find their initial position in a shuffled list.
Make sure you have Node.js installed on your machine.
Clone the repository:
git clone https://github.com/Zodbigt/prisoners-dilemma.git
cd prisoners-dilemma
Install dependencies:
npm install
node main.js
You can set the number of attempts by providing an argument:
node main.js 1000
To print the boxlist for each line:
node main.js 1000 true