File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ const state: RobotMinigame = {
6868 areas : [ ] ,
6969 areaLog : [ ] ,
7070 actionLog : [ ] ,
71- message : ""
71+ message : ''
7272} ;
7373
7474// sets the context to the state obj, mostly for convenience so i dont have to type context.... everytime
@@ -116,7 +116,7 @@ export function init(
116116 state . actionLog = [ { type : 'begin' , position : Object . assign ( { } , robot ) } ] ;
117117
118118 // Update the success message
119- state . message = " Please run this in the assessments tab!" ;
119+ state . message = ' Please run this in the assessments tab!' ;
120120}
121121
122122/**
@@ -239,7 +239,7 @@ export function create_rect_obstacle(
239239 * Inform the simulator that the initialisation phase is complete
240240 */
241241export function complete_init ( ) {
242- if ( state . actionLog . length === 0 ) throw new Error ( " May not complete initialization without first running init()" ) ;
242+ if ( state . actionLog . length === 0 ) throw new Error ( ' May not complete initialization without first running init()' ) ;
243243
244244 state . isInit = true ;
245245}
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ interface MapProps {
115115}
116116
117117const RobotSimulation : React . FC < MapProps > = ( {
118- state : {
118+ state : {
119119 width,
120120 height,
121121 robot : { radius : robotSize } ,
@@ -252,7 +252,7 @@ const RobotSimulation : React.FC<MapProps> = ({
252252 return (
253253 < >
254254 < div >
255-
255+
256256 { animationStatus === 0
257257 ? < button onClick = { ( ) => { setAnimationStatus ( 1 ) ; } } > Start</ button >
258258 : animationStatus === 1
Original file line number Diff line number Diff line change 1- import React , { useState } from 'react' ;
2- import type { RobotMinigame } from '../../bundles/robot_minigame/functions' ;
1+ import React from 'react' ;
32import type { DebuggerContext } from '../../typings/type_helpers' ;
43import RobotSimulation from './components/RobotSimulation' ;
54
You can’t perform that action at this time.
0 commit comments