Computer Science Canada Tic Tac Toe with 3D! |
Author: | The_Bean [ Wed Jan 21, 2009 10:13 pm ] | ||
Post subject: | Tic Tac Toe with 3D! | ||
Tic Tac Toe with 3D 'X's and 'O's. And probably still shorter than others at ~176 lines.
|
Author: | A.J [ Wed Jan 21, 2009 10:18 pm ] |
Post subject: | Re: Tic Tac Toe with 3D! |
I am impressed............kudos ![]() although, you can improve this by converting the whole grid into a cube......consider it as an extension to your program very good though |
Author: | Homer_simpson [ Thu Jan 22, 2009 1:04 am ] |
Post subject: | Re: Tic Tac Toe with 3D! |
neat! seems u've learned 3d programming pretty well in turing, time to move on to more powerful programs like java and c ![]() |
Author: | The_Bean [ Thu Jan 22, 2009 6:58 am ] |
Post subject: | Re: Tic Tac Toe with 3D! |
Actually python for grade 12 which starts in 1 week. And this game was made entirely in 1 class on spare. |
Author: | Ethan3210 [ Thu Jan 22, 2009 8:59 am ] |
Post subject: | Re: Tic Tac Toe with 3D! |
The_Bean @ Thu Jan 22, 2009 6:58 am wrote: Actually python for grade 12 which starts in 1 week. And this game was made entirely in 1 class on spare.
... YOU. ARE. GOD. That woulda taken me days. xD |
Author: | saltpro15 [ Thu Jan 22, 2009 9:01 am ] |
Post subject: | RE:Tic Tac Toe with 3D! |
cool, great job |
Author: | dc116 [ Fri Jan 23, 2009 4:39 pm ] |
Post subject: | RE:Tic Tac Toe with 3D! |
I am very impressed with this program. Good work! |
Author: | Insectoid [ Fri Jan 23, 2009 10:25 pm ] |
Post subject: | RE:Tic Tac Toe with 3D! |
Just a question, Are you going to go into video games? I assume you'd do well there. Your work is just phenomenal. I used to do games almost exclusively, but I discovered that programs that are largely technical rather than graphical are more fun. Simulations are cool too. You can call me your first and biggest fan. Your games have reached cereal box quality. Soon, you may reach CD-that-comes-with-game-magazine-dom. That would be awesome. |
Author: | andrew. [ Fri Jan 23, 2009 10:44 pm ] |
Post subject: | RE:Tic Tac Toe with 3D! |
Great job Bean! It would take me a lot more time than a spare period to write something like that. |
Author: | The_Bean [ Sat Jan 24, 2009 1:13 am ] | ||
Post subject: | Re: Tic Tac Toe with 3D! | ||
Video Games are definitely a field I wouldn't mind ending up in. They combine math, physics, and computers which I love. I feel like The Flight of the Conchords now that I have a fan base of 1. I might need to get a t-shirts made. Heres the starting of 3D Tic-Tac-Toe 3*3*3 grid. Not yet playable, I'm still trying to figure out a method for choosing boxes, and if theres an easier way than hard-coding every possible win scenario.
|
Author: | A.J [ Sat Jan 24, 2009 10:58 am ] |
Post subject: | RE:Tic Tac Toe with 3D! |
cool, I see you have taken my advice ![]() Good job, you are heading in the right direction. But just one small thing though : don't make the cube move as your mouse moves...that'll make it hard for the player to choose a position for his piece. |
Author: | The_Bean [ Sat Jan 24, 2009 12:35 pm ] |
Post subject: | Re: Tic Tac Toe with 3D! |
The rotating with the mouse was just for show, I've already remapped the rotation of the x/o's and the grid to the keyboard. I'm thinking of having a secondary grid showing the 27 squares, which you can click on. Clicking on the cube would be hard to get the center box. Also when you hover over them they will highlight on the cube to show where that is. |
Author: | Insectoid [ Sat Jan 24, 2009 1:10 pm ] |
Post subject: | RE:Tic Tac Toe with 3D! |
Only idea I have for checking wins is to have multiple nested for loops (x, y, z) for the horizontal/vertical wins and do that several times, with slight modification of the condition to find a win. I'm sure some will have to be hard-coded. |
Author: | The_Bean [ Sun Jan 25, 2009 12:36 am ] |
Post subject: | Re: Tic Tac Toe with 3D! |
I'm pretty sure i got the detection working, I can only think of 49 ways to win. Because of how easy it is to win, I went with the idea that you get a point for each line of 3 you make. The winner is the player with the most points when the board is full. Controls A,D-rotate board left/right W,X-rotate board up/down S-Spin board F,H-rotate objects left/right T,B-rotate objects up/down G-Spin Objects Use the lower left grids to pick your move. Not done yet, but the inner workings are complete. Just looks and feel left to go. Download file this time since I don't think I should post 231 lines. |
Author: | A.J [ Sun Jan 25, 2009 11:51 am ] |
Post subject: | Re: Tic Tac Toe with 3D! |
it is getting along pretty well ![]() 2 small things that you might want to add : 1). The board (i.e. draw the cube where the pieces are held) 2). Try changing the gameplay so that if u get 1 3-in-a-row, u win the game (although tat might be a little rigged for player 1...) apart from that, very good ![]() |
Author: | The_Bean [ Sun Jan 25, 2009 1:23 pm ] |
Post subject: | Re: Tic Tac Toe with 3D! |
1)I've already been thinking about the grid lines for the board but I'm trying to come up with a method that doesn't involve making another rotating object, something using the centers of the boxes already there. 2)It's really easy to change it so that the first point wins, but 'x' has a really unfair advantage when trying to get the first one. I've also been able to shorten up the detection by 12 lines, which makes it look a bit less of a brute. |
Author: | DanielG [ Sun Jan 25, 2009 3:38 pm ] |
Post subject: | RE:Tic Tac Toe with 3D! |
I also think there should be an added disadvatange to going first, sort of like komi in go such that whoever goes second gets some sort of advantage to cancel out the other player's. |
Author: | The_Bean [ Sun Jan 25, 2009 4:52 pm ] |
Post subject: | Re: Tic Tac Toe with 3D! |
I could give player 2 two turns in a row at the start to counteract player 1 getting to go first. Not sure how fair that is, will need to do some testing. I could also make settings where you can choose the style of game play: -First 3 in a row wins. -First to 3 points wins. -Most points after board is full wins. |
Author: | A.J [ Sun Jan 25, 2009 4:56 pm ] |
Post subject: | Re: Tic Tac Toe with 3D! |
DanielG wrote: I also think there should be an added disadvatange to going first, sort of like komi in go such that whoever goes second gets some sort of advantage to cancel out the other player's. Yes, with this 'disadvantage' for the first player, you can make it so that the first point wins. |