Skip to content

Commit

Permalink
docs: update example imports
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed Mar 20, 2023
1 parent c695175 commit d920a7a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ rapid-draughts powers the draughts game site [http://www.draughts.org/](http://w
## How to use

```typescript
import {
DraughtsPlayer,
DraughtsStatus,
EnglishDraughtsComputer,
EnglishDraughts,
} from 'rapid-draughts';
import { DraughtsPlayer, DraughtsStatus } from 'rapid-draughts/core';
import { EnglishDraughts, EnglishDraughtsComputer } from 'rapid-draughts/english';

// Initialise the game
const draughts = EnglishDraughts.setup();
Expand Down Expand Up @@ -50,5 +46,7 @@ while (draughts.status === DraughtsStatus.PLAYING) {
// Announce the winner
console.log(`${draughts.toString()}`);
console.log(`status = ${draughts.status}`);
console.log(`ended after ${draughts.history.moves.length} moves`);


```

0 comments on commit d920a7a

Please sign in to comment.