Paper-and-Pencil

UNITY

Paper-and-Pencil

A bundle of classic Paper-and-Pencil games.

Overview

A bundle of four classic Paper-and-Pencil games: Tic-Tac-Toe, Dots and Boxes, Hangman, and Battleship. Each game has a single player mode (CPU opponent with 3 difficulties) and a local multiplayer mode (on the same screen).

Tic-Tac-Toe

• Easy: Plays a random cell each time. • Medium: Will play the 3rd in a row to win, and will block the player if they are about to win. Otherwise it plays a random cell. • Hard: Unbeatable. Plays the correct strategy which includes creating and blocking forks.

Dots & Boxes

• Easy: If it can close a box it will. Otherwise it plays a random line. • Medium: Never plays the 3rd side of a box, and includes several strategies of chaining. • Hard: A more advanced version of the medium difficulty, it plays an additional strategy called "double-cross" to force the player to open longer chains. It's not a perfect algorithm and is by no means unbeatable.

Hangman

Difficulty just changes the range of the word lengths.

Battleship

• Easy: Plays a random cell each time. • Medium: Plays a random cell until it hits a ship, at which point it starts following all 4 directions to find the rest of the ship (as a human would think). If it hits another ship in the process of finding the rest of the first ship, it remembers it and saves it for later (chained). • Hard: Intelligent guessing - It check the length of longest ship it hasn't sunken yet, and tries to find consecutive cells of that length and plays the middle cell. This ensures finding the longest ship in the smallest number of moves. Once it hits a ship, it guesses the rest of it correctly (yes, it cheats!).

Tags

UnityMultiplayerC#