Skip to content

Commit

Permalink
Merge pull request #113 from allenwang2333/fix-game-reload-bug
Browse files Browse the repository at this point in the history
Fix reload not reloading board bug
  • Loading branch information
JackHe313 authored Dec 2, 2022
2 parents 89a4e77 + 732bd96 commit 69249a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bruin-o-bruin/src/gamePlay/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function handleSuccess(score, time) {
class Game extends React.Component {
constructor() {
super();
const cLayout = require("./layout.json")
const cLayout = JSON.parse(JSON.stringify(require("./layout.json")))
var board = cLayout.board;
const coor = cLayout["board-coor"]
var placeResult = randomPlaceBlock(board, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], cLayout.count)
Expand Down

0 comments on commit 69249a0

Please sign in to comment.