Skip to content

A puzzle dealing with a line of 100 positive integers, two players, and a non-losing strategy

Notifications You must be signed in to change notification settings

kieranlblack/integer-line-puzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Integer Line Puzzle

Two players are presented with a line of 100 positive integers. Both players can see every element of the line. The purpose of this program is to test my proposed solution.

The Game

  • Players take turn choosing integers to remove from either side of the line to add to their sum.
  • Player 1 goes first.
  • Player 2 is free to choose from whichever side they please.
  • The player with the largest sum at the end wins. If both players have the same sum they tie.
  • Determine a non-losing strategy for player 1.

My Proposed Solution

equation

About

A puzzle dealing with a line of 100 positive integers, two players, and a non-losing strategy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages