Can someone please help me to write a tic tac toe game!

Sharky Forums


Results 1 to 2 of 2

Thread: Can someone please help me to write a tic tac toe game!

  1. #1
    Tiger Shark SmoothCorn's Avatar
    Join Date
    Nov 2001
    Location
    Toronto, Ontario, Canada
    Posts
    595

    Thumbs up Can someone please help me to write a tic tac toe game!

    I am going to write it it VB. I have lots of ideas, but dont know how to start. So can someone plz help me out on this one

  2. #2
    Hammerhead Shark zackbass's Avatar
    Join Date
    Aug 2001
    Location
    MIT, Cambridge MA
    Posts
    1,692
    Is it going to be player vs player or player vs computer?

    In either case, you need to divide the playing field into a grid.

    That's a start.

    But be warned, when I wrote it in VB for player vs computer it turned out to be around 1200 lines of code and comments becasue I included a system in which the computer actually coordinates it's moves instead of having it take a rondom place.

    Don't take that 1200 as a realistic number though. After I finished tic-tac-toe in VB, I somehow found a way to program Pong in VB using 1400 lines of code and a whole lot of timers!

    Mmm...bloated code.
    P4 2.4C @ 3.44Ghz , 285 FSB -- Asus P4C800-E -- 512 Mb Corsair PC4000 -- Radeon 9800np 445.5/398.3 Vmodded-- 2xRaptors in RAID 0 -- Watercooled CPU, GPU and Northbridge -- Handcrafted Case

    ... And Folding Like No Tomorrow

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •