ComedyCode.com
Home Categories Languages Random New Popular Links
Search 

Share This Code!
Send this code to a friend!

ComedyCode of the Week
Check out this week's highlighted snippet!

New Here?
Create an account and become a ComedyCoder today!




May 13, 2008

Chess Playing Robot Controller

    Public Shared Sub Main()
        Dim GameEngine As New EngineRules(Chess)
        GameEngine.Connect(MyRobot.Arms)
        MyRobot.Setup(Board, GameEngine)
        If GameEngine.Side = White Then
            GameEngine.Connector.Move(Piece.KP, Position.KP(4))
        End If
        Do
            MyRobot.Wait(Patiently)
        Loop Until (MyRobot.IsMyMove)
        MyRobot.Speakers.Volume.Maximize()
        MyRobot.Speech.Output("Look over there!")
        MyRobot.Arms.Right.Point(Location.BehindOpponent)
        MyRobot.Legs.Kick(Board, ForceSettings.Maximum)
        MyRobot.Speech.Output("Earthquake!")
        GameEngine.Accept(Draw)
    End Sub


Coded by: CaptainJack (2)
View other ComedyCode by this comedycoder.
Send this comedycoder a message.
Submitted on: April 17, 2008
Category: Games
Show me more Games snippets.
Programming language: Visual Basic
Show me more Visual Basic snippets.
Viewed by: 126 unique visitors


Ratings & Comments

The following ratings and comments have been submitted about this code:

Rating: Hilarious

LOL! Incredible strategy!

By: Taxi


» Submit Code
» Login

Rate This Code!

Login or create an account.




Copyright © 2001-2004 - N-VisionIT Interactive
Website Design, Development & Hosting by N-VisionIT Interactive