Share your repls and programming experiences

← Back to all posts
[GAME] Puzzle Solver 2 (You should probably play this ;) )
MatthewX (168)

Hello everyone! I'm back to coding after the school year has passed! Today, I'm sharing with you guys a game that took me a while and that I started long ago but didn't get a chance to finish. As some of you may know, I made a puzzle solver before, BUT this is a different and new type of puzzle! I used some more CSS so the overall look is better.

I suggest reading the "how to play" page to get an understanding of how this puzzle works before trying! Also, feel free to make some suggestions as I want to improve my games in the future! Don't forget to post some of your own ideas for the game! Anyways, have fun trying to solve these puzzles and I bet your brain will be fried after this. XD
Comments
hotnewtop
CodingEssence (135)

OH MY GOD. MY BRAIN IS FRIED. AND I SOLVED THE PUZZLE... on the wrong one. NOOOOOOOOOOOOOOOOOOOOOOO:

EDIT: I solved it yay:

MatthewX (168)

@CodingEssence LOLLLLLLLLLLL That's sad :/ WOW NICE U DID IT FOR THE OTHER ONE :D

CodingEssence (135)

@MatthewX ikr. You solve it and your about to show the world, and then you realize its the wrong thing

CodingEssence (135)

I solved another one :):

CodingEssence (135)

ANOTHER ONE!:

I think im getting better at this game :)
And i frgt to mention, nice game

MatthewX (168)

@CodingEssence Thanks! Wow you got one of the hard ones but the only one you hadn't done is the hardest...

CodingEssence (135)

@MatthewX which one is the hard one?

CodingEssence (135)

@MatthewX oh, and i solved another one. XD:

MatthewX (168)

@CodingEssence BRUH HOW? I FORGOT HOW TO SOLVE IT dang...

MatthewX (168)

@CodingEssence Well you can try making your own puzzles now and I can prob add them to the game if you share picture with me. I have to go to sleep now so bye.

CodingEssence (135)

@MatthewX ok maybe i will make them

MatthewX (168)

@CodingEssence And try to complete lil boy picture XD ok bye

CodingEssence (135)

@MatthewX ok bye
i got 100 tries so far trying it xd

CodingEssence (135)

I got an idea for a puzzle: a checkerboard:

I know it's on that one, I was on it and was fooling around and got it this, and I know there is a Free Draw option

Also, another one, inverted present:

MatthewX (168)

@CodingEssence Ok, I'm probably going to add checker board because it's such a common pattern. If you think of something more creative, I can add a "player's creation" section ;)

MatthewX (168)

@CodingEssence Ok I added the checker board do you mind testing it out for me? bc idk how to get it and my brain is fried XD

cuber1515 (91)

@CodingEssence lol, I tried solving the lonely one and some how got the checkerboard instead.

CodingEssence (135)

@MatthewX I got another one, the axe:

cuber1515 (91)

@MatthewX I accidently came across pattern that might be cool:

cuber1515 (91)

shoot, now that I'm trying to do checker board I can't do it.

MatthewX (168)

@cuber1515 i dont think ima add that pattern bc it's kinda like checker board pattern sorry

MatthewX (168)

@CodingEssence that looks like a spartan helmet...

CodingEssence (135)

@MatthewX lol it looked like an axe to me, and it kinda does look like a spartan helmet after you mentioned

MatthewX (168)

@CodingEssence should i name it spartan helmet?

CodingEssence (135)

@MatthewX yea name it whatever you want, it doesn't matter to me

MatthewX (168)

@CodingEssence ok I'm going to add that in later :)

CodingEssence (135)

@MatthewX What the-

function check6(){
  if (a % 2 != 0){
    if (b % 2 == 0){
      if (c % 2 != 0){
        if (d % 2 == 0){
          if (e % 2 != 0){
            if (f % 2 == 0){
              if (g % 2 != 0){
                if (h % 2 == 0){
                  if (i % 2 != 0){
                    if (j % 2 == 0){
                      if (k % 2 != 0){
                        if (l % 2 == 0){
                          if (m % 2 != 0){
                            if (n % 2 == 0){
                              if (o % 2 != 0){
                                if (p % 2 == 0){
                                  if (q % 2 != 0){
                                    if (r % 2 == 0){
                                      if (s % 2 != 0){
                                        if (t % 2 == 0){
                                          if (u % 2 != 0){
                                            if (v % 2 == 0){
                                              if (w % 2 != 0){
                                                if (x % 2 == 0){
                                                  if (y % 2 != 0){
                                                    let scor = document.getElementById("info");
                                                    scor.innerText = "Congratulations! You have completed this picture in " + tries + " tries and " + moves + " moves!";
                                                    info.style.display = "block";
                                                    restartbut.style.display = "none";
                                                    movetext.style.display = "none";
                                                    trytext.style.display = "none";
                                                    endbutton.style.display = "block";
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

That is A LOT of if statements

MatthewX (168)

@CodingEssence I ADDED THE SPARTAN THING IN can you test it out pls I can't solve it so I can't test it...

CodingEssence (135)

@MatthewX May take 1 day hour to complete

CodingEssence (135)

@MatthewX Nvm, took less than a minute, XD:

CodingEssence (135)

@MatthewX Aaaaand I forgot how to solve it. XD

TheMaster7661 (34)

It's a flower! ...I think

FrancisPan (43)


I'm watching you :D

I hope this isn't spamming :D

FrancisPan (43)


SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS

TheMaster7661 (34)

@MatthewX Hey, I wanna create an RPG game, would you be wanting to work with me on that? You can add other people to help you code, as I would be working mostly on the game design, and figuring out if I wanna use your idea or not. I haven't found a coding language to use yet, so if you have one in mind, please tell me. If you are interested, I can invite you to a reply that has some sounds and images that I would like to use in the game.

MatthewX (168)

@NoahJospeh Hmmmm. I don't know what language to suggest for an RPG game and sorry but I don't think I can work with you bc I like working by myself. Sorry!

TheMaster7661 (34)

@MatthewX You're fine. If you know anyone else who'd like to join me, please tell me.

EdwardBentler (40)

3 tries and 5 moves on the first image. :)
5 tries and 18 moves on the second image. :)
1 try and 4 moves on the third image. :D
Infinite tries and infinite moves on the fourth image. XD
1 try and 50 moves on the fifth image. :)

MatthewX (168)

@EdwardBentler wow four moves for the third image? That's good!

LylaJane (0)

that is such a cool game! You should make a level with pets as the photos.😺🐶🐹🐰🐠🦜

matthewcai888 (2)

How do you even determine what the picture looks like

MatthewX (168)

@matthewcai888 Like how I made the pictures or how you make the picture? (also we have same first names :) )

FlaminHotValdez (716)

Lol tries is busted this took me like 7 tries

MatthewX (168)

@FlaminHotValdez BRUH HOW DID U DO THE PRESENT PICTURE AND LIL BOY? I made them but I forgot how to do them XD

CodingEssence (135)

@FlaminHotValdez wow you got the little boy, i've been trying for more than 2 hours, XD

MatthewX (168)

@CodingEssence wow I just randomly spam buttons bc I gave up on that one XD

MatthewX (168)

@CodingEssence Also Did you see the new puzzle i added?

CodingEssence (135)

@MatthewX Which one the checkerboard? If yes, I already solved it again

CodingEssence (135)

@MatthewX I was talking about how u said if i checked out the new puzzle

FlaminHotValdez (716)

Yeah...this one was pretty sloppy

cuber1515 (91)

Really cool puzzle game!

InvisibleOne (3226)

First off I completely ignored your suggestion and tried to complete the puzzle without reading the how to play... A few minutes later I read the how to play.

I played for a few more minutes and concluded that I must be an IDIOT because I couldn't solve any of them...

MatthewX (168)

@InvisibleOne lol XD Suggestions must help since their suggestions ;) and these puzzles are supposed to be hard so your not only one! (I have trouble with them too...)

InvisibleOne (3226)

I love the challenge though, usually I find puzzle games too easy and this one is really challenging, great job. @MatthewX