CodeGym /Courses /Java Collections /Big task: Write Sokoban

Big task: Write Sokoban

Java Collections
Level 10 , Lesson 15
Available

"Hello, soldier!"

"Hello, Captain Squirrels, sir!"

"Congratulations. Today we have a day off."

"And we can do whatever we want?"

"Yes, Amigo. You can play with your toys all day long. For example, Sokoban. My favorite game since childhood. I can't get past level 435. Can you help?"

"Of course, I'll will help, I'll show you, Captain."

Captain Squirrels pulls an old Game Boy out of his pocket and starts up the monochrome version of Sokoban. But then there's disappointment. The battery runs out, and the Game Boy shuts down.

Silently, the captain looks at the Game Boy, then at Amigo, then again at the Game Boy. He turns around and slowly walks to his office.

"Captain! Let's write our own version of Sokoban! We'll think up 1000 additional levels and make a cool graphical interface."

"Amigo, you never cease to amaze me. Contact Agent IntelliJ IDEA. If he has no other assignments for you and wants to help you on his day off, then proceed."

Big task: Write Sokoban - 1
20
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 1)
Sokoban (part 1)
10
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 2)
Sokoban (part 2)
10
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 3)
Sokoban (part 3)
20
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 4)
Sokoban (part 4)
20
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 5)
Sokoban (part 5)
10
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 6)
Sokoban (part 6)
10
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 7)
Sokoban (part 7)
10
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 8)
Sokoban (part 8)
10
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 9)
Sokoban (part 9)
20
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 10)
Sokoban (part 10)
20
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 11)
Sokoban (part 11)
20
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 12)
Sokoban (part 12)
20
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 13)
Sokoban (part 13)
20
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 14)
Sokoban (part 14)
40
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 15)
Sokoban (part 15)
20
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 16)
Sokoban (part 16)
10
Task
Java Collections, level 10, lesson 15
Locked
Sokoban (part 17)
Sokoban (part 17)
Comments (9)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Justin Smith Level 41, Greenfield, USA, United States
8 July 2023
This task was really fun and it was surprising to see how the code didn't need to be that complicated to create a game like this.
Ibrahim Level 24, Sheffield, United Kingdom
7 July 2022
This was a really good task and enjoyed working through it.
MaGaby2280 Level 41, Guatemala City, Guatemala
10 August 2021
OMG! I cannor believe I finished the last big task!!! 🥳💪🥳
Indranil Chakraborty Level 3, United Kingdom
4 August 2021
What am I doing here?😅
Evghenii Seremet Level 41, London, United Kingdom
15 March 2020
Following the advice about a misspelling int the word "Avaliable" i struggled to finish this task, cause now Admins corrected the task, so make sure you write it "Available". Admins can you also correct it in Conditions, there is still "Avaliable".
Elvis Lee Level 41, Aurora, United States
3 March 2020
Be careful of Part 15, the Condition has a mispelling "Avaliable" ??!!. Yet, you need to follow the wrong spelling word to name the method, or you'll fail the validation.
Elvis Lee Level 41, Aurora, United States
1 March 2020
Can the administrator check the validator of part 15?
Senned Level 41, Azov, Russia
28 January 2020
Use switch instead if for validator.
Duck Mac Level 3, United States
11 June 2019
89o