CodeCombat – programming can be as much fun as a game

CodeCombat is a multiplayer programming game for learning how to code. The ultimate goal of CodeCombat is to bring more users into the field of computer programming by making the logic and syntax more accessible and enjoyable to learn. The end game is to educate a whole new generation of computer programmers that started their journey by slaying ogres and defending their castles from oncoming enemy hordes.

CodeCombat teaches Python, JavaScript, and other languages directly in the browser.

CodeCombat itself can be found on GitHub under the free MIT license. All the art assets (sprites, backgrounds, sound effects, etc.) can also be found on GitHub and are published under a Creative Commons CC BY 4.0 license. This allows easy use of the game artwork for projects of students.

You can subscribe online or setup a dev environment on Windows, Mac or Linux yourself.   You need to be able to follow instructions and have some basic technical knowledge.

While the setup on the Mac and Linux are straight forward, Windows is the hardest to get working! (CodeCombat Wiki)

I have setup a local dev environment on my Mac for my daughter, as she does not play regularly but loves to tinker with it from time to time … learning Javascript!

Used some AppleScript  magic and Automator to ease the startup of the setup when needed. The setup might vary on your end, as I am using iTerm2 as a Terminal replacement.

  1. on run {input, parameters}
  2.        
  3.         set app_name to "mongod"
  4.         set user_name to "pzTV"
  5.         set path_to_codecombat to "/Users/pzTV/Entwicklung/"
  6.  
  7.         set the_pids to (do shell script "ps ax | grep " & (quoted form of app_name) & "| grep -v grep | awk '{printf \"%d \", $1}'")
  8.         do shell script ("for PID in " & the_pids & "; do kill -9 $PID; done ")
  9.        
  10.         tell application "iTerm2"
  11.                 create window with profile "Mongo"
  12.                 tell current window
  13.                        
  14.                         tell current session
  15.                                 write text "cd " & path_to_codecombat & "codecombat ; ./bin/coco-mongodb"
  16.                         end tell
  17.                 end tell
  18.                 tell current window
  19.                         create tab with profile "CodeCombat"
  20.                         tell current session
  21.                                 write text "cd " & path_to_codecombat & "codecombat ; npm start"
  22.                         end tell
  23.                        
  24.                 end tell
  25.                
  26.                
  27.         end tell
  28.        
  29.         delay 15
  30.        
  31.         tell application "Google Chrome"
  32.                 open location "192.168.1.32:3000"
  33.                
  34.         end tell
  35.        
  36. end run
  37.  

CodeCombat is a really fun way to get into programming and keep your kids motivated.

CodeCombat Website / GitHub

 


 

Alex

I am a full-stack developer. I love programming,  design and know my way around server architecture as well.  I would never feel complete, with one of these missing. I have a broad range of interests, that’s why I constantly dive into new technologies and expand my knowledge where ever required. Technologies are evolving fast and I enjoy using the latest. Apart from that, I am a peace loving guy who tries to have people around him that think the same.  I truly believe in the principle: “If you help someone, someone will help you, when you need it."

Recent Posts

Particle Network Animations in Javascript

What are particle animations? Particle network animations in JavaScript typically involve creating visual representations of… Read More

3 days ago

B&B / Hotel Booking Solutions for WordPress | 2024

BOOKING SOLUTIONS 202x This is my take on a subset of booking, appointment, PMS or… Read More

1 month ago

WordPress Cron + WP-CLI + Ntfy

THE GOAL Create a system cron for WordPress, that is accessible and can be easily… Read More

2 months ago

2024 is here and now :)

2024, what's cooking? Slowly getting into the 2024 spirit. 3 projects coming to a close… Read More

4 months ago

2023 ends and whats next !

Short look back at 2023 This has been a busy and interesting year. I am… Read More

4 months ago

cubicFUSION Grid Tweaker – Elementor Grid made easy.

Elementor Pro provides grid containers as an experimental feature. The options provided are limited, when… Read More

5 months ago