Skip to content

Commit

Permalink
fix import readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisukez committed Aug 25, 2022
1 parent 6f5ab8b commit 1c58943
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ const state: State = importFen(INITIAL_FEN)
## Move
There're 2 different ways to move
```ts
import { move, generateLegalMoves } from '@kaisukez/makruk-js'
import {
State,
MoveObject,
move,
generateLegalMoves,
} from '@kaisukez/makruk-js'

// 1. Use Standard Algebraic Notation (SAN)
const newState: State = move(state, 'Me2')
Expand All @@ -22,7 +27,7 @@ const newState: State = move(state, moves[0])

## Check if game over
```ts
import { move, generateLegalMoves } from '@kaisukez/makruk-js'
import { gameOver } from '@kaisukez/makruk-js'
const end: boolean = gameOver(state)
```

Expand All @@ -32,6 +37,7 @@ import {
State,
importFen,
INITIAL_FEN,
move,
gameOver,
findBestMove,
ascii,
Expand Down

0 comments on commit 1c58943

Please sign in to comment.