BeyondChess™ CS Bridge

Week 2: What Changes vs. What Stays
Body Concept: Firmware (constants) vs. Flow (variables) — the physics of a body
Name:   Date:  

♟ Chess (The Body)

A pawn's position changes every move.
But the rule that it can't go backward
never changes.

SAME
THINKING

💻 Computer Science

A variable stores data that changes.
A constant stores data that never changes.

Coach Lamont says: "Your pawn's position? That changes every move — that's a variable, the flow of the body. The rule that pawns can't go backward? That NEVER changes — that's a constant, the firmware. Every body has things that flow (change) and things that are fixed (stay). You already know the difference. Now let's see how computers use the same idea."

Part 1: The Big Idea — Every Body Has Flow and Firmware

In chess AND in code, some things change (flow/variables) and some things stay the same (firmware/constants):

Chess (The Body)Flow or Firmware?Code Example
A pawn's position on the boardFlow / Variable (changes every move)let pawnPosition = "e4"
The rule: pawns move forward onlyFirmware / Constant (never changes)const PAWN_DIRECTION = "forward"
Your current chess ratingFlow / Variable (goes up and down)let playerRating = 800
The board has 64 cellsFirmware / Constant (always 64)const BOARD_SIZE = 64
Which piece is on e4Flow / Variable (could be anything)let pieceOnE4 = "Knight"
The King is the still centerFirmware / Constant (always true)const KING_IS_VITAL = true

Part 2: CS Vocabulary (The Physics of Bodies)

Variable (Flow)
A named container that holds data which can change. Like a cell on the board — the name stays the same but the piece on it changes. In code: let score = 0
CHIMERA: variables are the MEDIUM flowing through the body. The flow changes. The channels stay.
Constant (Firmware)
A named container that holds data which never changes. Once set, it's locked forever. Like the rule "pawns go forward." In code: const BOARD_SIZE = 64
CHIMERA: constants are the body's firmware. The compiled rules that define the body's physics. Change them and the body breaks.
Data Type
The KIND of information stored: numbers (42), text ("hello"), or true/false (boolean). Every variable and constant has a type — just like every piece has a type (pawn, knight, etc.).
Assignment
Putting a value into a variable. Like placing a piece on a cell: score = 100
Update
Changing a variable's value. Like moving a pawn to a new cell: score = score + 10

Part 3: See the Code — A Chess Game Has Firmware and Flow

// ===== CHESS GAME AS A BODY ===== // FIRMWARE (Constants) — The body's physics. NEVER change. const BOARD_SIZE = 64 const PAWN_VALUE = 1 const KING_VALUE = "priceless" const PAWNS_PER_PLAYER = 8 // FLOW (Variables) — The medium moving through the body. Changes every move. let pawnPosition = "e2" // Starting cell let moveCount = 0 let isGameOver = false // When the pawn moves, the FLOW changes: pawnPosition = "e4" // Pawn moved forward! moveCount = moveCount + 1 // Count goes up // But BOARD_SIZE is still 64. Always. // PAWN_VALUE is still 1. Always. // Firmware doesn't change. That's the rule.
Body Check: Every app on your phone uses flow and firmware. Your username? A variable — the flow (you could change it). The app's name? A constant — firmware (it's always "Instagram"). Your game score? Flow. The rule that you need 100 coins for a level? Firmware.

Part 4: Practice Exercises

Before each answer: LOOKTHINKCHECKMOVERESET

Exercise A: Sort It! — Flow (V) or Firmware (C)?

ItemV or C?
Your age
Your birthday
The temperature outside
The number of hours in a day (24)
Your chess rating
The number of cells on a chessboard (64)
How many pieces you've captured this game
The rule that the King moves one square at a time
The score of a basketball game
The number of players on a basketball team (5)

Exercise B: Write the Code

Turn these chess facts into code. Use let for flow (variables) and const for firmware (constants):

1. A pawn is worth 1 point (firmware — this never changes):
2. The player's current rating is 800 (flow — this can change):
3. A knight is currently on cell f3 (flow — this changes when it moves):
4. Each player starts with 16 pieces (firmware — this is always true):

Exercise C: The King = The CPU (Still Center = Processor)

Big Idea: The King is like the CPU (processor) — the still center of your computer. If the King is trapped (checkmate), the entire body shuts down. If the CPU stops, everything stops. Same pattern. Different body.
5. Why is the King like a computer's processor (CPU)?
6. In a video game, which of these is FLOW (a variable)?
7. What happens if you try to change FIRMWARE (a constant) in code?

Part 5: Think Like an Engineer

8. List 3 "flow" (variables) and 3 "firmware" (constants) from your daily life:

Flow (things that change): 1. 2. 3.

Firmware (things that stay): 1. 2. 3.

9. A pawn starts small (firmware — just goes forward). But it can compile (promote) into a Queen — the most powerful piece. How is this like learning a new skill? Can a "variable" in your life grow bigger over time? Can firmware upgrade?
10. If you were building a chess app, what flow (variables) and firmware (constants) would you need? List at least 3 of each.
Week 2 Takeaway: Every body has flow (what changes) and firmware (what stays the same). Variables change, constants don't. Every program — and every chess game — uses both. When you track your pawn's position (flow) while following the rules (firmware), you're already thinking like a programmer. The body has physics (constants) and the medium flows through it (variables). Same pattern. Every body. Every program. Every life.