Exchange Forum > AutoCAD Games
Tic-Tac-Dummy game
Tic-Tac-Dummy game

#1

Flynn
Join Date:
07-24-2007
I agreed to a challenge by Terry and JPS to finish writing a tic-tac-toe game that I started a long while back. I have to give thanks to a few engineers that I work with for their tips and suggestions. It still needs a few error checks, but it’s about as complete as I can get it. Everyone is welcome to revise it to make it better. Most of all have fun playing it. And if you get caught playing it at work, just tell them that you are designing a table of information and you are trying to get the text justifications right.
 
Cheers,
Flynn
 
Note to Terry and JPS:
Well, I finally finished it! It's really cool with this neat touch screen feature. It requires a lot a Windex though. If the touch screen feature is not working properly on your computer, it's probably just a user error. So you might have to resort back to using your mouse instead.

Attachments  ttd.lsp  
Tic-Tac-Dummy game

#2

AVLISP
Join Date:
09-28-2007
Hello Flynn,
 
Nice game. Its good you finished it no matter it took you a long time to do it.
 
AVLISP
Tic-Tac-Dummy game

#3

JPS
Join Date:
10-06-2007
OMG it works. It beat me once. How can this be? I'm closing my web site. The competition is too stiff. I can't handle it.
 
Nice job!!!!!!!
 
JPS
Tic-Tac-Dummy game

#4

Terry Cadd
Join Date:
09-10-2007
So that's what you and Felix were up to over the past couple of weeks. We all thought it was something really important. My only comments would be to declare your local variables and also check to see if the user picked point p1 before asking for point p2.
Nice version of the game.
 
Wow! It's thinking. Yea, right!
Tic-Tac-Dummy game

#5

Flynn
Join Date:
07-24-2007
Hey, that's why I named it "Dummy"!
 
Unlike the cool JPS Tic-Tac-Toe game, mine has no clue or strategy as to what the computers move might be.
Tic-Tac-Dummy game

#6

isoplane
Join Date:
07-27-2007
Far out! I finally found a game that I can beat the computer about 50% of the time. You know what would really be cool, is if you would show the scores after each game.
Tic-Tac-Dummy game

#7

Yohanno
Join Date:
09-29-2007
When I try to play your game I get the message,
no function definition: DTR
Tic-Tac-Dummy game

#8

Flynn
Join Date:
07-24-2007
Sorry about that! I should have included the DTR function. It's also found in the "Useful AutoLISP functions" under the "AutoLISP and Visual LISP" forum. I'll try and see if I can work on the game a little more this weekend to included the request so far.
Thanks for your input.
 
Code:
(defun dtr (degrees)
  (* pi (/ degrees 180.0))
)
Tic-Tac-Dummy game

#9

Flynn
Join Date:
07-24-2007
Here’s an update on my Tic-Tac-Dummy game. I put in a score keeper and added few minor changes. Have fun!

Attachments  ttd.lsp