https://github.com/capsulecorplab/pbe-lightsout
"Lights Out" game from "Pharo by Example - A First Application"
https://github.com/capsulecorplab/pbe-lightsout
game lightsout pharo
Last synced: 8 months ago
JSON representation
"Lights Out" game from "Pharo by Example - A First Application"
- Host: GitHub
- URL: https://github.com/capsulecorplab/pbe-lightsout
- Owner: capsulecorplab
- License: mit
- Created: 2021-03-05T19:14:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-28T08:52:10.000Z (almost 5 years ago)
- Last Synced: 2025-07-25T09:53:29.947Z (11 months ago)
- Topics: game, lightsout, pharo
- Language: Smalltalk
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LightsOut
"Lights Out" game from ["Pharo by Example - A First Application"](https://github.com/SquareBracketAssociates/PharoByExample80/releases/download/continuous/PBE8-wip.pdf).
## Loading instructions
### Starting from a Pharo image
Open a playground window (`Ctrl+O+W`) and evaluate:
```smalltalk
Metacello new baseline: 'PBELightsOut';
repository: 'github://capsulecorplab/PBE-LightsOut:main/src';
load.
```
Note: Evaluate by highlighting the text, then either right-click on the highlighted text and click `Do it` or press `Ctrl+D`.
### Starting from the shell
Clone the repo:
```shell
git clone https://github.com/capsulecorplab/PBE-LightsOut.git
cd PBE-LightsOut
```
Download the 64-bit Pharo image + VM into the `PBE-LightsOut` directory and start the Pharo-UI:
```shell
curl get.pharo.org/64/stable+vm | bash
./pharo-ui Pharo.image
```
In the Pharo-UI, open a playground window (`Ctrl+O+W`) and evaluate:
```smalltalk
Metacello new baseline: 'PBELightsOut';
repository: 'gitlocal://./src';
load.
```
Note: Evaluate by highlighting the text, then either right-click on the highlighted text and click `Do it` or press `Ctrl+D`.
## Play LightsOut
Once the `PBE-LightsOut` package has been loaded into your Pharo image, start the game by evaluating the following:
```smalltalk
LOGame new openInWindow.
```