Rook
РусскийRU

Language map

The guide, as a route

Each square is a section of the guide. The rook marks where you are; visited sections stay gold. Your progress is saved in this browser.

0 of 35 sections
you are herevisitedahead

One move

Let the message through.

The send is waiting and the program is stuck. Change one number so the value can enter the channel before the receive.

const jobs = chan<number>(0)
jobs <- 7
console.log(<-jobs)
buffer

The send waits on an unbuffered channel. The trace confirms a stalemate.

Runtime trace
  1. jobs: channel created with buffer 0
  2. The send is waiting for a receiver.
  3. The send waits on an unbuffered channel. The trace confirms a stalemate.