Derp
This commit is contained in:
		
							parent
							
								
									344b4f8063
								
							
						
					
					
						commit
						c49028a04c
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -159,10 +159,9 @@ isGameOver g = blockStopped g && g ^. block ^. origin == startOrigin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
timeStep :: Game -> IO Game
 | 
					timeStep :: Game -> IO Game
 | 
				
			||||||
timeStep g = if (blockStopped g)
 | 
					timeStep g = if (blockStopped g)
 | 
				
			||||||
                then return . coreUpdater $ g
 | 
					                then stopUpdater g
 | 
				
			||||||
                else stopUpdater . coreUpdater $ g
 | 
					                else return . gravitate $ g
 | 
				
			||||||
  where
 | 
					  where
 | 
				
			||||||
    coreUpdater = gravitate
 | 
					 | 
				
			||||||
    stopUpdater = nextBlock . updateScore . clearFullRows . freezeBlock
 | 
					    stopUpdater = nextBlock . updateScore . clearFullRows . freezeBlock
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- TODO check if mapKeysMonotonic works
 | 
					-- TODO check if mapKeysMonotonic works
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue