Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Help.

Help.

Scheduled Pinned Locked Moved The Lounge
comgame-devhelp
25 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S shivamkalra

    Hello, I created a school project on "unbeatable tic.tac.toe game". I created a best possible AI I could. I've tested my program many times and I could't beat it but my friend told me that he beated it but he is not able to redo it. Can someone go to my blog and play a game for whila dn report some bugs or improvement or anything about it here..Here is my blog: http://shivam-kal[^]

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #4

    Yes I just beat it although the program said tie. X X O X O X O X O I assume it is not recognising the diagonal from bottom left to top right as a win as it carried on and placed the last X and then declared a tie.

    1 Reply Last reply
    0
    • S shivamkalra

      Hello, I created a school project on "unbeatable tic.tac.toe game". I created a best possible AI I could. I've tested my program many times and I could't beat it but my friend told me that he beated it but he is not able to redo it. Can someone go to my blog and play a game for whila dn report some bugs or improvement or anything about it here..Here is my blog: http://shivam-kal[^]

      D Offline
      D Offline
      Dino Mulahusic
      wrote on last edited by
      #5

      I think you have a bug in your code. See picture I managed to get tHree in a line but i didn't get the message "You won" or something like that. And I could continue to play. And I can win always if I play first

      modified on Wednesday, May 12, 2010 3:01 AM

      _ 1 Reply Last reply
      0
      • S shivamkalra

        Hello, I created a school project on "unbeatable tic.tac.toe game". I created a best possible AI I could. I've tested my program many times and I could't beat it but my friend told me that he beated it but he is not able to redo it. Can someone go to my blog and play a game for whila dn report some bugs or improvement or anything about it here..Here is my blog: http://shivam-kal[^]

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #6

        Yes I just beat it again but it declared itself the winner!!! Cheating *!$%*££:mad: the game went like this and I have noted the order in which the signs were placed. O1 O4 O3 X3 X4 X5 O2 X2 X1 Hope this is of help to you and allows you to fix the bug. This was done with the comp playing first so would imagine it wasd easier if I went first.

        1 Reply Last reply
        0
        • D Dino Mulahusic

          I think you have a bug in your code. See picture I managed to get tHree in a line but i didn't get the message "You won" or something like that. And I could continue to play. And I can win always if I play first

          modified on Wednesday, May 12, 2010 3:01 AM

          _ Offline
          _ Offline
          _Damian S_
          wrote on last edited by
          #7

          Dino Mulahusic wrote:

          tree in a line

          I'm sure treelines aren't part of classic noughts and crosses!! ;-)

          I don't have ADHD, I have ADOS... Attention Deficit oooh SHINY!! If you like cars, check out the Booger Mobile blog | If you feel generous - make a donation to Camp Quality!!

          D R 2 Replies Last reply
          0
          • S shivamkalra

            Hello, I created a school project on "unbeatable tic.tac.toe game". I created a best possible AI I could. I've tested my program many times and I could't beat it but my friend told me that he beated it but he is not able to redo it. Can someone go to my blog and play a game for whila dn report some bugs or improvement or anything about it here..Here is my blog: http://shivam-kal[^]

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #8

            Shivamkalra wrote:

            I created a school project

            Oh my god. Just wait till this guy works in the IT industry. He cant even debug a 'noughts and crosses' game? (By the way, thats what its called in the UK)

            Morality is indistinguishable from social proscription

            L 1 Reply Last reply
            0
            • _ _Damian S_

              Dino Mulahusic wrote:

              tree in a line

              I'm sure treelines aren't part of classic noughts and crosses!! ;-)

              I don't have ADHD, I have ADOS... Attention Deficit oooh SHINY!! If you like cars, check out the Booger Mobile blog | If you feel generous - make a donation to Camp Quality!!

              D Offline
              D Offline
              Dino Mulahusic
              wrote on last edited by
              #9

              :-O

              1 Reply Last reply
              0
              • L Lost User

                Shivamkalra wrote:

                I created a school project

                Oh my god. Just wait till this guy works in the IT industry. He cant even debug a 'noughts and crosses' game? (By the way, thats what its called in the UK)

                Morality is indistinguishable from social proscription

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #10

                fat_boy wrote:

                He cant even debug a 'noughts and crosses' game?

                Surely everybody has been at this stage at some point in there life and school is the usual place to acquire the know how.

                A L 2 Replies Last reply
                0
                • L Lost User

                  fat_boy wrote:

                  He cant even debug a 'noughts and crosses' game?

                  Surely everybody has been at this stage at some point in there life and school is the usual place to acquire the know how.

                  A Offline
                  A Offline
                  AspDotNetDev
                  wrote on last edited by
                  #11

                  :thumbsup: That's pretty much what I was going to say.

                  [Forum Guidelines]

                  S 1 Reply Last reply
                  0
                  • A AspDotNetDev

                    :thumbsup: That's pretty much what I was going to say.

                    [Forum Guidelines]

                    S Offline
                    S Offline
                    shivamkalra
                    wrote on last edited by
                    #12

                    Yes I found that mistake too. Actually I've not included any animation that shows "you win" because it's an unbeatable game. Anyways now try it again. Thanks all for making me correct this problem.

                    OriginalGriffO 1 Reply Last reply
                    0
                    • S shivamkalra

                      Yes I found that mistake too. Actually I've not included any animation that shows "you win" because it's an unbeatable game. Anyways now try it again. Thanks all for making me correct this problem.

                      OriginalGriffO Offline
                      OriginalGriffO Offline
                      OriginalGriff
                      wrote on last edited by
                      #13

                      Shivamkalra wrote:

                      Actually I've not included any animation that shows "you win" because it's an unbeatable game.

                      Patently not!

                      I have learnt that you can not make someone love you, all you can do is stalk them and hope they panic and give in. Apathy Error: Don't bother striking any key.

                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                      1 Reply Last reply
                      0
                      • S shivamkalra

                        Hello, I created a school project on "unbeatable tic.tac.toe game". I created a best possible AI I could. I've tested my program many times and I could't beat it but my friend told me that he beated it but he is not able to redo it. Can someone go to my blog and play a game for whila dn report some bugs or improvement or anything about it here..Here is my blog: http://shivam-kal[^]

                        P Offline
                        P Offline
                        Pete OHanlon
                        wrote on last edited by
                        #14

                        As long as your next step isn't to create Global Thermonuclear War. Your computer isn't called WOPR is it? Well done on the game though.

                        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                        My blog | My articles | MoXAML PowerToys | Onyx

                        D 1 Reply Last reply
                        0
                        • S shivamkalra

                          Hello, I created a school project on "unbeatable tic.tac.toe game". I created a best possible AI I could. I've tested my program many times and I could't beat it but my friend told me that he beated it but he is not able to redo it. Can someone go to my blog and play a game for whila dn report some bugs or improvement or anything about it here..Here is my blog: http://shivam-kal[^]

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #15

                          Well done for fixing the bug, but it has taken the fun out of playing now as I much prefered it when there was a chance of me winning.

                          1 Reply Last reply
                          0
                          • P Pete OHanlon

                            As long as your next step isn't to create Global Thermonuclear War. Your computer isn't called WOPR is it? Well done on the game though.

                            "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                            As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                            My blog | My articles | MoXAML PowerToys | Onyx

                            D Offline
                            D Offline
                            Dalek Dave
                            wrote on last edited by
                            #16

                            You Bastard! I was just going to comment on the possibility of upgrading to Global Thermonuclear War when I saw you beat me to it ! Oh Well, perhaps I could get to fly pteradactyls.

                            ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

                            P 1 Reply Last reply
                            0
                            • D Dalek Dave

                              You Bastard! I was just going to comment on the possibility of upgrading to Global Thermonuclear War when I saw you beat me to it ! Oh Well, perhaps I could get to fly pteradactyls.

                              ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

                              P Offline
                              P Offline
                              Pete OHanlon
                              wrote on last edited by
                              #17

                              I also beat you with the David Cameron as PM last night :-D Hooray - no more Brown....

                              "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                              As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                              My blog | My articles | MoXAML PowerToys | Onyx

                              D 1 Reply Last reply
                              0
                              • P Pete OHanlon

                                I also beat you with the David Cameron as PM last night :-D Hooray - no more Brown....

                                "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                                As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                                My blog | My articles | MoXAML PowerToys | Onyx

                                D Offline
                                D Offline
                                Dalek Dave
                                wrote on last edited by
                                #18

                                Pete O'Hanlon wrote:

                                Hooray - no more Brown....

                                I could cry with joy. Did you see him enrol his family in the ritual humiliation as he walked away from Downing Street? He really is a cyplopian, jug-eared, lantern-jawed, tosser. I feel sorry for Sarah Brown, now he is at home with nothing to do he will want more sex. Poor girl has to lay there with that ugly wanker jiggling on top with his detatchable face flapping as he grunts his way to personal satisfaction.

                                ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

                                R P 2 Replies Last reply
                                0
                                • L Lost User

                                  fat_boy wrote:

                                  He cant even debug a 'noughts and crosses' game?

                                  Surely everybody has been at this stage at some point in there life and school is the usual place to acquire the know how.

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #19

                                  SO he knows how the game of noghts and crosses works. And he can write code to produce a game to play it. Yet he DOESNT notice when it mistakes a win for a loose, or continues playing, ignoring diagonal lines? Sorry, thats not normal.

                                  Morality is indistinguishable from social proscription

                                  R S 2 Replies Last reply
                                  0
                                  • S shivamkalra

                                    You don't need to download anthing, it's an silverlight application. I've assumed that every one here has SL3 runtime.

                                    R Offline
                                    R Offline
                                    Russell Jones
                                    wrote on last edited by
                                    #20

                                    I refuse to install that crap on my PC. I only installed flash because a website that I absolutely had to use needed it. Even then I installed a Script blocker to make usre I didn't get infested on every other internet page I visited. If you're writing for the web I'd recommend using things like HTML and ECMA Script.

                                    1 Reply Last reply
                                    0
                                    • _ _Damian S_

                                      Dino Mulahusic wrote:

                                      tree in a line

                                      I'm sure treelines aren't part of classic noughts and crosses!! ;-)

                                      I don't have ADHD, I have ADOS... Attention Deficit oooh SHINY!! If you like cars, check out the Booger Mobile blog | If you feel generous - make a donation to Camp Quality!!

                                      R Offline
                                      R Offline
                                      Russell Jones
                                      wrote on last edited by
                                      #21

                                      Sounds like Irish noughts and crosses to me.

                                      1 Reply Last reply
                                      0
                                      • D Dalek Dave

                                        Pete O'Hanlon wrote:

                                        Hooray - no more Brown....

                                        I could cry with joy. Did you see him enrol his family in the ritual humiliation as he walked away from Downing Street? He really is a cyplopian, jug-eared, lantern-jawed, tosser. I feel sorry for Sarah Brown, now he is at home with nothing to do he will want more sex. Poor girl has to lay there with that ugly wanker jiggling on top with his detatchable face flapping as he grunts his way to personal satisfaction.

                                        ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

                                        R Offline
                                        R Offline
                                        Russell Jones
                                        wrote on last edited by
                                        #22

                                        I can't work out whether to give you a 5 for making me laugh or a 1 for making me vomit so you'll have to make do with a 3

                                        1 Reply Last reply
                                        0
                                        • L Lost User

                                          SO he knows how the game of noghts and crosses works. And he can write code to produce a game to play it. Yet he DOESNT notice when it mistakes a win for a loose, or continues playing, ignoring diagonal lines? Sorry, thats not normal.

                                          Morality is indistinguishable from social proscription

                                          R Offline
                                          R Offline
                                          Rob Grainger
                                          wrote on last edited by
                                          #23

                                          Give the kid a break - he's at school, and at least showing initiative looking for solutions, and asking for help in a constructive way - not just a "here's my assignment question". Or do you get your kicks bullying children?

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups