Skip to content

Zodbigt/prisoners-dilemma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published