Share your repls and programming experiences

← Back to all posts
[ GAME ] Switcheroo
h
Coder100 (8247)

Switcheroo

Switcheroo is a new puzzle game I made in VScode!! It's also my first game post in a long time...

About

I made this game using nothing but google fonts and font awesome!! I really like how the usage of icons has really shaped this game. I'll explore more into later games ;) I also really like the transitions :D

One of my better projects, I really liked how dynamic this was!

How to play

Your goal is to make all the squares green. Click on a square to invert its whole row and column.

Can you solve this puzzle in only one move?
Answer: If you said row 1 column 4, you are correct! Because the whole row and column is inverted, the red L vanishes!

Hints

Some levels are a bit hard, so I will drop in some hints. The notation is (x,y). It denotes the position of the square to click on. Note: The puzzle doesn't get solved! It gets you to a state where you can hopefully figure it out on your own.
ONLY DO THESE WHEN YOU ARE HAVING TROUBLE

LevelProcess
4(1,1)(1,2)(1,3)(1,4)
5(1,1)(1,4)(4,4)
8(1,1)(2,2)
10(2,3)
11(2,3)
12(1,1)
17(3,3)
20(1,1)(1,2)
21(1,2)(2,2)
25(2,2)(3,3)
21(1,2)(2,2)
21(1,2)(2,2)
26(3,3)(2,2)
34(1,4)
35(1,1)

Strategy

The trick is to click on all the tiles that are red at the very beginning. Then after you've clicked all those, repeat. Works every time ;)

- @maxyang

Comment below your strategies and I will add them here!

Credits

Special thanks to

Leaderboard

To be on the leaderboard, please comment below with your screenshot of the win screen (like what you were told to do 😉)

Challenges

  • What is the minimum move count? I predicted 216 but @maxyang proved me wrong!
  • What is the maximum amount of permutations of a 2x2 square? 3x3? 6x6?

My low score is 800! Can you beat me?

btw cactus already beat me :(

Commentshotnewtop
DynamicSquid (3539)

Squids can also change colour!

fuzzyastrocat (558)

@DynamicSquid At this point, it's best to ask:

What can squids not do?

fuzzyastrocat (558)

@DynamicSquid I mean, I prefer jellyfish myself, but I'll support any kind of tentacled sea creature :D

sylashur (48)

@fuzzyastrocat Apparently, they cannot eat the blue-ringed octopus.

fuzzyastrocat (558)

@sylashur Good to know. If I ever get a pet squid I'll never feed it a blue-ringed octopus :D

Coder100 (8247)

aren't like blue-ringed octopi poisonous @fuzzyastrocat

fuzzyastrocat (558)

@Coder100

aren't like blue-ringed octopi poisonous

Yeah I think so. I think they're venomous or something.

ew

Why?

maxyang (67)

@Coder100 ye they're VERY poisonous enough to kill people.

CodingCactus (3008)

btw cactus already beat me :(

haha

ThatCoolCoder (14)

Slight problem: it's not very hard to inspect element and make the win screen show up without doing any moves.

Coder100 (8247)

@ThatCoolCoder a sample solution would be to make a new element class, and whenever you win, we create this new element class into the gameboard and then when you click next level the element gets deleted, but it seems like too much ado over nothing when there are even more matters on hand: localStorage

ThatCoolCoder (14)

@Coder100 Yeah I didn't really expect you to fix it, I was just pointing out a general problem with html/js games. Sorry to trouble you!

Coder100 (8247)

oh its fine I really liked the feedback @ThatCoolCoder

RohilPatel (1168)

Did you know I like to switcharoo my upvote tactics?

Coder100 (8247)

Here's a solved upvote
Continue to the next level >>
@RohilPatel

RohilPatel (1168)

Level 2: our pe teacher made us do a switcharoo challenge today, literally lots of moving lmao @Coder100

oignons (308)

Another amazing game by Coder100!

Because I gave you praise you must now thank me by giving me 100 cycles

I love your games!

oignons (308)

@Coder100 LOL!! You're welcome, you deserve it.

Vandesm14 (2364)

@oignons Not according to the upvotes on the comments and the relevant conversation among them.

oignons (308)

@Vandesm14 I didn't upvote them to upvoe them, here's a pic of my screen:

rjlevy (395)

Hey @Coder100, I love the game. Good graphics and game-play, and refreshing to see it's been made with Vanilla JS rather than a framework or library. Is this an original game you created?

Coder100 (8247)

@rjlevy Thanks!! Yeah, this is original :)

rjlevy (395)

@Coder100 ah, OK! Really excellent concept for a game. Well done! 👍

rjlevy (395)

Hey @python88, isn't this game by @Coder100 great! 😊

python88 (157)

@rjlevy i hope you get trending soon!

python88 (157)

@rjlevy wait, how do i have 74 cycles or whatever it's called?

python88 (157)

@rjlevy for my 100 cycle celebration i will make a big project!

python88 (157)

@rjlevy thx! in my time zone, if u posted this 2 hours ago, it woild be 6:25

rjlevy (395)

@python88 yes, that's right. What country are you in? I'm in the UK

FluidCycling (60)

@Coder100 why u bully me on my posts. Wut did I ever do to u

ZDev1 (614)

@FluidCycling huh
Look at the cookyelang docs, u will see that coder100 makes a smile on it face

which it's wrong

JK DON'T GET MAD ⊙﹏⊙
Edit: makes a smile on ur face

FluidCycling (60)

@ZDev1 He bullied me on my post bro!

python88 (157)

i got 484: Congratulations!! You completed all the levels! Make a comment in the post with this screenshot to be on the leaderboard!
Moves: 484

fuzzyastrocat (558)

Nice job! Fun and inventive game.

fuzzyastrocat (558)

@Coder100 No problem!

(Your second challenge reminded me that I wanted to try to make a non-trivial 2x2 puzzle game... time to get thinking!)

fuzzyastrocat (558)

@Coder100 Yeah, my motivation was kinda that it seems like every puzzle game gets hard because of how much stuff there is, so trying to make a game that gets hard because of how little stuff there is might be fun

fuzzyastrocat (558)

@Coder100 I think I've done it — Stay tuned! :D

cmglj (2)

ok, ok dude. this is INSANE, i click. play and that transition to the game. just wow. you can for sure make games and websites! great workkkkkkkkkk

Coder100 (8247)

@cmglj sorry, for the late reply, but THANK YOU SO MUCH!! :D

poetaetoes (284)

also lvl 11 is impossible. i tried maxyangs tricks too:(

poetaetoes (284)

level four is imposible even with 1,1|1,2|1,3|1,4!!!

Coder100 (8247)

try maxyang's method, that's how I solved it @poetaetoes

HyperOfficial (3)

lmao this is so hard pog champ
im still stuck on 3, there should be hints for 3 lmao

Muffinlavania (1152)

@Coder100 This project is too blessed. I shall upvotes for the cause

Muffinlavania (1152)

@Coder100

REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

POG

Muffinlavania (1152)

@Coder100 ok ok i will un upvote, but after someone else upvotes i will upvote again, but for now I SHALL RULE WITH MY UNO (For real i dont know why i have 100 upvotes but i do)

Muffinlavania (1152)

@Coder100 illuminati confirmed


Your upvotes: 69
My upvotes: 96

THEY'RE ONTO US

Bo01ean (0)

image for leaderboard


also very cool game me and my friend Brayden0 have been trying to get better at this for days!

Brayden0 (0)

By the way this is my favorite game ever that I have played on any coding sites. Keep up the great work.

Brayden0 (0)

Wait i did better

CoolGuy27 (10)

@Coder100 Thanks!
btw what is the number by my name? i'm new

Coder100 (8247)

no problem!
The number by the name is how many cycles you have, they're like reddit karma (pretty useless lol)

Here, let me give you one @CodyTrainer

CoolGuy27 (10)

@Coder100 new highscore srsly only by one move!!!

CoolGuy27 (10)

@Coder100 cool guy is my new username you can remove codytrainer

CoolGuy27 (10)

@Coder100 yesyesyesyesyesyesyesyesyesyes

SystematicError (24)

@Coder100 Guess who spent 3.5 days trying to get the 1st place on the leaderboard. Not me because I'm too dumb =D . Anyways here's the closest I have got:
image

Brayden0 (0)

I got my high score

IMaperson2 (0)

I would honestly buy this game if it had more levels and a level select. It's better than almost all of my mobile games.

Coder100 (8247)

hey, you know, I think I might be able to, too bad I don't have a phone :( @IMaperson2

Spodormon (1)

i did it again 659 clicks!!!

Spodormon (1)

i made it!
2812. clicks