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.

chooseMatchingPair
	<gtExample>
	| game |
	game := self fixedGame.
	game chooseCard: (game availableCards at: 6) .
	game chooseCard: (game availableCards at: 11) .
	self assert: game visibleCards size equals: 14.
	self assert: game isOver not.
	^ game
    

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.