How to evaluate some code?

In any code editor, including code snippets or method coers, you can select (highlight) some code, and evaluate or inspect it (right click to see the menu, or use Command+G).

Some methods, like examples and class methods, can be run directly from the coder view.

	| aGame |
	aGame := self fixedGame.
	self assert: aGame visibleCards size equals: 16.
	aGame chooseCard: (aGame availableCards at: 6) .
	aGame chooseCard: (aGame availableCards at: 11) .
	self assert: aGame visibleCards size equals: 14.
	self assert: aGame isOver not.
	^ aGame

In the Coder, you can also open a Playground by lifting up the handle at the bottom of the page. In that Playground, self will be bound to the class.