Hard Programming ChallengesThis is a featured page

1) The challenge is to attempt to create the perfect Tic-Tac-Toe AI. It's definitely possible to never lose a game of TicTacToe, so let's see how close your AI can come to that.

GUI is definitely not required, but you get 4 bonus points if your game looks good. You should spend your time making your AI work first, and THEN take a stab at a GUI.


Mason(pkk)
Mason(pkk)
Latest page update: made by Mason(pkk) , Jan 31 2008, 12:53 PM EST (about this update About This Update Mason(pkk) Edited by Mason(pkk)

67 words added

view changes

- complete history)
Keyword tags: None
More Info: links to this page
Started By Thread Subject Replies Last Post
GuyKnudsen Tic-Tac-Toe 0 Nov 15 2009, 11:32 AM EST by GuyKnudsen
Thread started: Nov 15 2009, 11:32 AM EST  Watch
@echo off

title ScrewTheLotOfYou's Tic Tac Toe

title Noughts and Crosses

setlocal enabledelayedexpansion


::~ ^^^ Stops all commands appearing on screen, sets the title and enables the use of ! for environment variables.


:menu

cls

echo Main Menu

echo To Play A 1-Player Game, Enter 1

echo To Play A 2-Player Game, Enter 2

echo To Exit, Enter 3

set /p menu=

if not defined menu goto menu

if /i %menu% equ 1 (

set menu=

cls

goto 1p

)

if /i %menu% equ 2 (

set menu=

cls

goto 2p

)

if /i %menu% equ 3 (

goto end

)

set menu=

goto menu

this is a batch file
Do you find this valuable?    
Keyword tags: None
Showing 1 of 1 threads for this page