Share your repls and programming experiences

← Back to all posts
[ GAME ] Switcheroo

# Switcheroo

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

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 ;)

## Credits

Special thanks to

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 :(

DynamicSquid (4543)

Squids can also change colour!

fuzzyastrocat (1473)

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

What can squids not do?

fuzzyastrocat (1473)

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

sylashur (49)

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

fuzzyastrocat (1473)

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

Coder100 (12689)

aren't like blue-ringed octopi poisonous @fuzzyastrocat

fuzzyastrocat (1473)

@Coder100

aren't like blue-ringed octopi poisonous

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

ew

Why?

FlaminHotValdez (221)

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

CodingCactus (3209)

btw cactus already beat me :(

haha

ThatCoolCoder (18)

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

Coder100 (12689)

@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 (18)

@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 (12689)

oh its fine I really liked the feedback @ThatCoolCoder

RohilPatel (1459)

Did you know I like to switcharoo my upvote tactics?

Coder100 (12689)

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

RohilPatel (1459)

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

oignons (314)

Another amazing game by Coder100!

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

oignons (314)

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

Vandesm14 (2577)

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

oignons (314)

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

RolandJLevy (753)

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 (12689)

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

RolandJLevy (753)

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

RolandJLevy (753)

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

python88 (288)

@rjlevy i hope you get trending soon!

python88 (288)

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

python88 (288)

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

python88 (288)

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

RolandJLevy (753)

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

[deleted]

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

zplusfour (830)

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

which it's wrong

Edit: makes a smile on ur face

[deleted]

@ZDev1 He bullied me on my post bro!

[deleted]
python88 (288)

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 (1473)

Nice job! Fun and inventive game.

fuzzyastrocat (1473)

@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 (1473)

@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 (1473)

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

cmglj (4)

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 (12689)

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

poetaetoes (289)

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

Coder100 (12689)

How about `(2,3)(4,4)`? @poetaetoes

poetaetoes (289)

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

Coder100 (12689)

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

Coder100 (12689)

you mean

Coder100 (12689)

reee it's

# NICE

Muffinlavania (1423)

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

Muffinlavania (1423)

# REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

POG

Muffinlavania (1423)

@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 (1423)

@Coder100 illuminati confirmed

THEY'RE ONTO US

Bo01ean (0)

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 (58)

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

Coder100 (12689)

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 (58)

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

CoolGuy27 (58)

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

CoolGuy27 (58)

@Coder100 yesyesyesyesyesyesyesyesyesyes

SystematicError (25)

@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

Coder100 (12689)

good luck getting there! You can do it! @SystematicError

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 (12689)

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

AmazingMech2418 (994)

How did you get only 800? LOL!