Allow starting pieces to be in bounds
This commit is contained in:
		
							parent
							
								
									8ec499a0a9
								
							
						
					
					
						commit
						344b4f8063
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -250,7 +250,7 @@ isOccupied = flip M.member
 | 
			
		|||
 | 
			
		||||
-- | Check if coordinate is in or out of bounds
 | 
			
		||||
isInBounds, isOutOfBounds :: Coord -> Bool
 | 
			
		||||
isInBounds (x,y) = x `elem` [1..boardWidth] && y `elem` [1..boardHeight]
 | 
			
		||||
isInBounds (x,y) = x `elem` [1..boardWidth] && y `elem` [1..]
 | 
			
		||||
isOutOfBounds = not . isInBounds
 | 
			
		||||
 | 
			
		||||
-- | Gravitate current block, i.e. shift down
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue