-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Programming Concepts
Used in the later levels when covering a 'classical' algorithm problem. Fizzbuzz, solving a maze, and array sorting would fall under this concept.
This concept comes into play when performing actions on strings. For example: getting a string length, adding strings, splicing strings.
When passing a value into a function, this concept is employed. this.moveRight(2)
, this.cleave(enemy)
, etc.
Any sort of addition/subtraction/multiplication/division of numbers. nextStep = self.pos.x + 1
, midX = (a.x + b.x) / 2
.
If the level includes arrays in any way. var enemies = this.findEnemies()
, var friendNames = ['Molly', 'Bolly', 'Holly']
.
All levels teach basic syntax. What do you think this is? Block-based programming?
If the level specifically goes into True/False instead of using Thruthy/Falsey behaviors of elements. Not: if enemy:
.
Include this if the level covers breaking out of a loop prematurely.
If the player is required to create their own classes inside of CodeCombat.
This is for levels that cover continue.
If the level focuses on using for-loops. Note, some late desert levels use while-loops with a manual index, so be sure to place your level appropriately.
When the user creates their own functions in a level. (See: Late Mountain levels.)
If the user is drawing in some way. (See: Flowers.)
Include when the level uses if-statements. (Pretty much all levels after early forest.)
Currently this covers flag-input.
Arithmetic covers +/-/*//, but, Math operations is for the Math library. Math.pow(,)
, Math.sin()
, Math.acos()
.
If the user creates
Include this if the user creates functions which take an argument. function foo(_bar)
.
Simple string variables. If a level has "this is a string"
, it probably needs this concept.
Declaring any variables. So, that's probably a lot of levels.
This covers both simple main-loops as well as more complex optimization loops. If it says while
, it is a while-loop.
Includes all levels which make use of Vector math. Adding, subtracting, dot products, etc.
If a player is responsible for creating a self-referencing function.
CodeCombat | Home | Blog | Forum | Teachers | Legal | Contribute
- Home
- Archmage Home
- Artisan Home
- Diplomat Home
- Archmage General
- Mission statement
- Coco Models
- Coding Guidelines
- Cookbook
- File system
- JSON Schema
- Technical overview
- Testing
- Third party software and services
- Artisan General
- Building A Level
- Coding Guidelines for Artisans
- Editing Thang Components
- Important Artisan Concepts
- Keyboard Shortcuts
- Debugging
- Artisan How-To Index
- Diplomat General
- i18n
- i18n Glossary nb
- i18n Glossary ru
- i18n Glossary es-419
- Dev Setup
- Dev Setup: Linux
- Dev Setup: Windows
- Dev Setup: Mac
- Dev Setup: Vagrant
- Dev Setup: Issues
- Game Engine
- Component
- Multiplayer
- Surface
- System
- Thang
- Thang Component System
- Tome
- World
- Artisan Tabs
- Components And Systems
- Scripts
- Settings
- Thangs
- Other
- Aether
- Client models
- Developer organization
- Educational Standards
- Events, subscriptions, shortcuts
- Chat Room
- Chat Room Rules
- Permissions
- Project Ideas List
- Treema
- Versioning
- Views