Skip to content

Commit c26c1c2

Browse files
committed
Correctedd the definition of the GoalReward (removed division by 3)
1 parent 85b33ae commit c26c1c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/InteractiveRLLAb.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ export default function InteractiveRLLab(){
743743

744744
const c=gridRef.current[y]?.[x];
745745
if(c==="goal") {
746-
return hasKeyRef.current ? goalRewardRef.current : goalRewardRef.current / 3;
746+
return hasKeyRef.current ? goalRewardRef.current : goalRewardRef.current;
747747
}
748748
if(c==="lava")return lavaPenaltyRef.current;
749749
if(c==="wall")return -0.2;

0 commit comments

Comments
 (0)