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
    #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
                                  • 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

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

                                    I saw the aerial footage as the movers were round the back. :laugh:

                                    "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

                                    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

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

                                      Let me tell you, I do know all the rules of Tic-Tac-Toe but to make an unbeatable game, my code take into consideration next two most probable moves and then avoid any chance of loosing. It does my avoiding a place where user get chance to win twice. Well, I think you are having some problem from the question I asked because you are not looking happy and making irrelevant comments. Since a Tic-Tac-Toe game has 9 cells it's not possible to have 9*9 (81) if else statements that's why even for such a small project I would have to use min max algorithm which itself behaves in complicated way. One more thing to add, I was't able to figure out problem myself because there was only one pattern where my code was giving strange output and when the guy in forum showed me pic I certainly realized that pattern and quickly corrected it. I think it not harm you seek anybody's help, we all are friends here and we should help each other instead of making rude and meaningless comments. But you think I did some mistake in asking the question then I'm sorry about it. But whenever you need any help I'll be there for your help and I won't make any rude and meaningless statements. As you said "He can't even debug a simple...", well you could check that I've written some good articles, with good good ratings and views as well but I can't even see a single article written by you which surely shows that you don't do anything useful here accept making meaningless comments on other posts.

                                      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