Mobile Main Menu
Started by KingofGamesYami, Aug 13, 2018, 02:25 am
Aug 13, 2018, 02:25 am
Reposted from here
Othello, otherwise known as
, is a game I've enjoyed for many years. I decided to create it in CC because, to my knowledge, nobody else has.
pastebin get rMeh1Kag
Some sort of turn indicator (whether it is white or black's turn to move)
(added in 1.1
Some way of determining if there are no possible moves for a player (Ugh...)
(added in 1.1) [Toggle-able in 1.2]
(Possibly) scale the gameboard, it's a little small
(decided not to)
AI (Work In Progress)
(Added in 1.2)
Fix any bugs people report
detects valid/invalid moves
autoflips game pieces
determines winner at end of game
skips player if no moves can be made
shows possible move(s)
Arguments (AI, hideMoves)
-AI allows you to play against an AI as black
-hideMoves allows you to play without the possible moves shown
Early end game (neither player can move) now handled properly
toggle show/hide moves in game (m)
The AI doesn't work on Mimic. I don't know why, I suspect it's got something to do with os.queueEvent.
The game can be run with
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.
I'm a ComputerCraft veteran with over 3k posts on the old
. I'm mostly inactive in CC having moved on to bigger, more interesting projects but still contribute to the community.
Terms and Rules
Go Up ▲
SMF 2.1 Beta 4 © 2018