Skip to content

hoangminhle98/fun-tias-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

This repository contains fun programming problems I want to try; Some of them come from "Cracking the Coding Interview 6th Edition" by Gayle Laakmann McDowell.


NIM:

A 2-player zero-sum game against the computer

Implemented using Minimax algorithm.

Original Nim Game:

Starting with a pile of 13 coins

Each player take turn removing 1, 2 or 3 coins from the pile

Whoever takes the last coin loses.

Modified Nim Game:

Starting with a pile of 2n+1 coins

Each player take turn removing either 1, 2 or 3 coins

Whoever ends up with an even number of coins win.

Reference:

About

Project to try

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages