A simple command-line application with an entrypoint in bin/
, library code
in lib/
, and example unit test in test/
. The app is a very basic card game.
- Install dart from https://dart.dev/get-dart
- Navigate to the project's folder
- Install dependencies running this command:
dart pub get
After the setup you can start the app simply by running
dart ./bin/main.dart
from the project's folder
App has just a couple of simple unit tests for a game model To start tests simply run
dart test
Game model is the only one with tests, but it's still not fully tested, a logic to handle cases like calling play()
multiple times or dealing cards are not handled gracefully etc. But I believe it's not the point of this exercise to make full-blown tests and to make this simple app perfect or to waste time trying to ;)