OLD | NEW |
(Empty) | |
| 1 Conway's Game of Life |
| 2 ===================== |
| 3 |
| 4 This package contains a reusable Game of Life widget built using Dart web |
| 5 components. Here's a rundown of what's here: |
| 6 |
| 7 `componenets/` contains the web components used to build the game |
| 8 `test/` contains unit tests |
| 9 `index.html`, `game_of_life.dart` are a sample app consisting of exactly one |
| 10 Game of Life widget and nothing else. |
| 11 |
| 12 Compiling and Running |
| 13 --------------------- |
| 14 |
| 15 To use these components, or to compile the sample app, you must have the |
| 16 experimental version of dart2js with no-wrapper web components support. You can |
| 17 get it at `https://github.com/samhopkins/bleeding_edge`. Then to compile the |
| 18 sample, run |
| 19 |
| 20 `dart2js game_of_life.dart -ogame_of_life.js` |
| 21 |
| 22 and open `index.html` in a browser. |
| 23 |
| 24 To use the Game of Life component in your app, import |
| 25 `components/components.dart`. |
| 26 |
| 27 Running the Tests |
| 28 ----------------- |
| 29 |
| 30 We cannot presently use the usual test infrastructure in the repo, since it does |
| 31 not play well with pub right now. To run the tests, first compile them with |
| 32 |
| 33 `dart2js tests/game_of_life_tests.dart -o tests/game_of_life_tests.js`. |
| 34 |
| 35 Then open `tests/test_page.html` in your browser. |
OLD | NEW |