Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
inf101.v19.oppgaver
inf101.v19.lab4
Commits
e86f1260
Commit
e86f1260
authored
Jan 26, 2019
by
Noeska Smit
Browse files
Refactor to v19
parent
77e966c8
Changes
15
Hide whitespace changes
Inline
Side-by-side
.project
View file @
e86f1260
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
inf101.v1
8
.lab2
</name>
<name>
inf101.v1
9
.lab2
</name>
<comment></comment>
<projects>
</projects>
...
...
inf101.v1
8
.lab2.iml
→
inf101.v1
9
.lab2.iml
View file @
e86f1260
File moved
src/inf101/v1
8
/cell/CellState.java
→
src/inf101/v1
9
/cell/CellState.java
View file @
e86f1260
package
inf101.v1
8
.cell
;
package
inf101.v1
9
.cell
;
import
java.util.Random
;
...
...
src/inf101/v1
8
/cell/GameOfLife.java
→
src/inf101/v1
9
/cell/GameOfLife.java
View file @
e86f1260
package
inf101.v1
8
.cell
;
package
inf101.v1
9
.cell
;
import
java.awt.Color
;
import
java.util.Random
;
import
inf101.v1
8
.datastructures.IGrid
;
import
inf101.v1
8
.datastructures.MyGrid
;
import
inf101.v1
9
.datastructures.IGrid
;
import
inf101.v1
9
.datastructures.MyGrid
;
/**
*
...
...
src/inf101/v1
8
/cell/ICellAutomaton.java
→
src/inf101/v1
9
/cell/ICellAutomaton.java
View file @
e86f1260
package
inf101.v1
8
.cell
;
package
inf101.v1
9
.cell
;
import
java.awt.Color
;
...
...
src/inf101/v1
8
/cell/Main.java
→
src/inf101/v1
9
/cell/Main.java
View file @
e86f1260
package
inf101.v1
8
.cell
;
package
inf101.v1
9
.cell
;
import
inf101.v1
8
.cell.gui.CellAutomataGUI
;
import
inf101.v1
9
.cell.gui.CellAutomataGUI
;
public
class
Main
{
...
...
src/inf101/v1
8
/cell/SeedsAutomaton.java
→
src/inf101/v1
9
/cell/SeedsAutomaton.java
View file @
e86f1260
package
inf101.v1
8
.cell
;
package
inf101.v1
9
.cell
;
import
java.awt.Color
;
import
java.util.Random
;
import
inf101.v1
8
.datastructures.IGrid
;
import
inf101.v1
8
.datastructures.MyGrid
;
import
inf101.v1
9
.datastructures.IGrid
;
import
inf101.v1
9
.datastructures.MyGrid
;
/**
*
...
...
src/inf101/v1
8
/cell/gui/AutomatonComponent.java
→
src/inf101/v1
9
/cell/gui/AutomatonComponent.java
View file @
e86f1260
package
inf101.v1
8
.cell.gui
;
package
inf101.v1
9
.cell.gui
;
import
java.awt.Component
;
import
java.awt.Dimension
;
import
java.awt.Graphics
;
import
inf101.v1
8
.cell.ICellAutomaton
;
import
inf101.v1
9
.cell.ICellAutomaton
;
/**
*
...
...
src/inf101/v1
8
/cell/gui/CellAutomataGUI.java
→
src/inf101/v1
9
/cell/gui/CellAutomataGUI.java
View file @
e86f1260
package
inf101.v1
8
.cell.gui
;
package
inf101.v1
9
.cell.gui
;
import
java.awt.BorderLayout
;
import
java.awt.Component
;
...
...
@@ -9,7 +9,7 @@ import javax.swing.JButton;
import
javax.swing.JFrame
;
import
javax.swing.JPanel
;
import
inf101.v1
8
.cell.ICellAutomaton
;
import
inf101.v1
9
.cell.ICellAutomaton
;
/**
*
...
...
src/inf101/v1
8
/datastructures/GridTest.java
→
src/inf101/v1
9
/datastructures/GridTest.java
View file @
e86f1260
package
inf101.v1
8
.datastructures
;
package
inf101.v1
9
.datastructures
;
import
static
org
.
junit
.
Assert
.*;
...
...
@@ -6,7 +6,7 @@ import java.util.Random;
import
org.junit.Test
;
import
inf101.v1
8
.cell.CellState
;
import
inf101.v1
9
.cell.CellState
;
public
class
GridTest
{
Random
random
=
new
Random
();
...
...
src/inf101/v1
8
/datastructures/IGrid.java
→
src/inf101/v1
9
/datastructures/IGrid.java
View file @
e86f1260
package
inf101.v1
8
.datastructures
;
package
inf101.v1
9
.datastructures
;
import
inf101.v1
8
.cell.CellState
;
import
inf101.v1
9
.cell.CellState
;
public
interface
IGrid
{
...
...
src/inf101/v1
8
/datastructures/IList.java
→
src/inf101/v1
9
/datastructures/IList.java
View file @
e86f1260
package
inf101.v1
8
.datastructures
;
package
inf101.v1
9
.datastructures
;
import
inf101.v1
8
.cell.CellState
;
import
inf101.v1
9
.cell.CellState
;
public
interface
IList
{
/**
...
...
src/inf101/v1
8
/datastructures/MyGrid.java
→
src/inf101/v1
9
/datastructures/MyGrid.java
View file @
e86f1260
package
inf101.v1
8
.datastructures
;
package
inf101.v1
9
.datastructures
;
import
inf101.v1
8
.cell.CellState
;
import
inf101.v1
9
.cell.CellState
;
/**
*
...
...
src/inf101/v1
8
/datastructures/MyList.java
→
src/inf101/v1
9
/datastructures/MyList.java
View file @
e86f1260
package
inf101.v1
8
.datastructures
;
package
inf101.v1
9
.datastructures
;
import
java.util.Arrays
;
import
inf101.v1
8
.cell.CellState
;
import
inf101.v1
9
.cell.CellState
;
public
class
MyList
implements
IList
{
private
int
length
;
...
...
src/inf101/v1
8
/datastructures/MyListTest.java
→
src/inf101/v1
9
/datastructures/MyListTest.java
View file @
e86f1260
package
inf101.v1
8
.datastructures
;
package
inf101.v1
9
.datastructures
;
import
static
org
.
junit
.
Assert
.*;
...
...
@@ -6,7 +6,7 @@ import org.junit.After;
import
org.junit.Before
;
import
org.junit.Test
;
import
inf101.v1
8
.cell.CellState
;
import
inf101.v1
9
.cell.CellState
;
import
java.util.Random
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment