Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 800 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 800 Bytes

Prisoners Dilemma

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.

Getting Started

Prerequisites

Make sure you have Node.js installed on your machine.

Installation

Clone the repository:

git clone https://github.com/Zodbigt/prisoners-dilemma.git
cd prisoners-dilemma

Install dependencies:

npm install

Run the Game

node main.js

Set Number of Attempts (default: 1000)

You can set the number of attempts by providing an argument:

node main.js 1000

Print Boxlist

To print the boxlist for each line:

node main.js 1000 true