Skip to content

Commit

Permalink
Renaming this variable
Browse files Browse the repository at this point in the history
  • Loading branch information
smparsons committed Nov 26, 2018
1 parent c187392 commit ab45345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chip8/services/chip8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { pipe2, pipe3 } from 'src/functional'

import { cpu } from './cpu'

const initializeChip8 = (game: Uint8Array, randomSeed: number): Chip8 =>
pipe3(initializeRandomGenerator(randomSeed), loadFontset, loadGame(game))(chip8InitialState)
const initializeChip8 = (game: Uint8Array, initialSeed: number): Chip8 =>
pipe3(initializeRandomGenerator(initialSeed), loadFontset, loadGame(game))(chip8InitialState)

const initializeRandomGenerator = (initialSeed: number): Chip8Func => (chip8State: Chip8) => ({
...chip8State,
Expand Down

0 comments on commit ab45345

Please sign in to comment.