mirror of
				https://github.com/inf112-v20/Fiasko.git
				synced 2025-11-04 11:43:44 +01:00 
			
		
		
		
	Legger til en utility klasse for å laste inn et brett fra en tekstfil
This commit is contained in:
		@@ -0,0 +1,15 @@
 | 
			
		||||
package inf112.fiasko.roborally.utility;
 | 
			
		||||
 | 
			
		||||
import inf112.fiasko.roborally.objects.Robot;
 | 
			
		||||
import org.junit.Test;
 | 
			
		||||
import java.io.IOException;
 | 
			
		||||
import java.util.ArrayList;
 | 
			
		||||
import java.util.List;
 | 
			
		||||
 | 
			
		||||
public class BoardLoaderUtilTest {
 | 
			
		||||
    @Test
 | 
			
		||||
    public void loadTestBoard() throws IOException {
 | 
			
		||||
        List<Robot> robotList = new ArrayList<>();
 | 
			
		||||
        BoardLoaderUtil.loadBoard("boards/test_board.txt", robotList);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user