ComputerCraft Forums

ComputerCraft => Programs => Games => Topic started by: KingofGamesYami on Aug 13, 2018, 02:25 AM

Title: CCOthello
Post by: KingofGamesYami on Aug 13, 2018, 02:25 AM
Reposted from here (http://www.computercraft.info/forums2/index.php?/topic/22413-gameccothello/)

Othello, otherwise known as Reversi (http://en.wikipedia.org/wiki/Reversi), is a game I've enjoyed for many years. I decided to create it in CC because, to my knowledge, nobody else has.
Download:
pastebin get rMeh1Kag (http://pastebin.com/rMeh1Kag)
Future plans:
Current Features:
1.1
1.2
1.3
1The AI doesn't work on Mimic. I don't know why, I suspect it's got something to do with os.queueEvent.
Instructions:
The game can be run with two three arguments, AI, hideMoves, and monitor. I will briefly outline what they do here:
AI - this engages the built in AI, which moves for black. The AI is not very advanced, and bases it's selections solely on number of pieces it can capture per move.
hideMoves - by default, the game displays the possible moves. This argument disables the feature, since some may want to play without it.
monitor - will search for a monitor, and if found, redirect to it. It will also attempt to scale the game, if your monitor is large enough.
The game contains 1 keybind: m.
m toggles hiding/showing moves on and off.