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
b9e9db37
Commit
b9e9db37
authored
Feb 01, 2018
by
Anya Helene Bagge
🦆
Browse files
copy/update from 2017
parent
1d92af59
Changes
18
Hide whitespace changes
Inline
Side-by-side
.idea/misc.xml
0 → 100644
View file @
b9e9db37
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_8"
default=
"false"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
/>
</project>
\ No newline at end of file
.idea/modules.xml
0 → 100644
View file @
b9e9db37
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/inf101.v18.lab2.iml"
filepath=
"$PROJECT_DIR$/inf101.v18.lab2.iml"
/>
</modules>
</component>
</project>
.idea/vcs.xml
0 → 100644
View file @
b9e9db37
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$"
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
.project
View file @
b9e9db37
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
inf101.v1
7
.lab2
</name>
<name>
inf101.v1
8
.lab2
</name>
<comment></comment>
<projects>
</projects>
...
...
inf101.v18.lab2.iml
0 → 100644
View file @
b9e9db37
<?xml version="1.0" encoding="UTF-8"?>
<module
type=
"JAVA_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<output
url=
"file://$MODULE_DIR$/bin"
/>
<exclude-output
/>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/src"
isTestSource=
"false"
/>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"module-library"
>
<library
name=
"junit5"
>
<CLASSES>
<root
url=
"jar://$APPLICATION_HOME_DIR$/lib/junit.jar!/"
/>
</CLASSES>
<JAVADOC
/>
<SOURCES
/>
</library>
</orderEntry>
<orderEntry
type=
"module-library"
>
<library
name=
"JUnit5.0"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/junit/jupiter/junit-jupiter-api/5.0.0/junit-jupiter-api-5.0.0.jar!/"
/>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/apiguardian/apiguardian-api/1.0.0/apiguardian-api-1.0.0.jar!/"
/>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/opentest4j/opentest4j/1.0.0/opentest4j-1.0.0.jar!/"
/>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-commons/1.0.0/junit-platform-commons-1.0.0.jar!/"
/>
</CLASSES>
<JAVADOC
/>
<SOURCES
/>
</library>
</orderEntry>
</component>
</module>
\ No newline at end of file
src/inf101/v1
7
/cell/CellState.java
→
src/inf101/v1
8
/cell/CellState.java
View file @
b9e9db37
package
inf101.v1
7
.cell
;
package
inf101.v1
8
.cell
;
import
java.util.Random
;
...
...
src/inf101/v1
7
/cell/GameOfLife.java
→
src/inf101/v1
8
/cell/GameOfLife.java
View file @
b9e9db37
package
inf101.v1
7
.cell
;
package
inf101.v1
8
.cell
;
import
java.awt.Color
;
import
java.util.Random
;
import
inf101.v1
7
.datastructures.IGrid
;
import
inf101.v1
7
.datastructures.MyGrid
;
import
inf101.v1
8
.datastructures.IGrid
;
import
inf101.v1
8
.datastructures.MyGrid
;
/**
*
...
...
src/inf101/v1
7
/cell/ICellAutomaton.java
→
src/inf101/v1
8
/cell/ICellAutomaton.java
View file @
b9e9db37
package
inf101.v1
7
.cell
;
package
inf101.v1
8
.cell
;
import
java.awt.Color
;
...
...
src/inf101/v1
7
/cell/Main.java
→
src/inf101/v1
8
/cell/Main.java
View file @
b9e9db37
package
inf101.v1
7
.cell
;
package
inf101.v1
8
.cell
;
import
inf101.v1
7
.cell.gui.CellAutomataGUI
;
import
inf101.v1
8
.cell.gui.CellAutomataGUI
;
public
class
Main
{
...
...
src/inf101/v1
7
/cell/SeedsAutomaton.java
→
src/inf101/v1
8
/cell/SeedsAutomaton.java
View file @
b9e9db37
package
inf101.v1
7
.cell
;
package
inf101.v1
8
.cell
;
import
java.awt.Color
;
import
java.util.Random
;
import
inf101.v1
7
.datastructures.IGrid
;
import
inf101.v1
7
.datastructures.MyGrid
;
import
inf101.v1
8
.datastructures.IGrid
;
import
inf101.v1
8
.datastructures.MyGrid
;
/**
*
...
...
src/inf101/v1
7
/cell/gui/AutomatonComponent.java
→
src/inf101/v1
8
/cell/gui/AutomatonComponent.java
View file @
b9e9db37
package
inf101.v1
7
.cell.gui
;
package
inf101.v1
8
.cell.gui
;
import
java.awt.Component
;
import
java.awt.Dimension
;
import
java.awt.Graphics
;
import
inf101.v1
7
.cell.ICellAutomaton
;
import
inf101.v1
8
.cell.ICellAutomaton
;
/**
*
...
...
src/inf101/v1
7
/cell/gui/CellAutomataGUI.java
→
src/inf101/v1
8
/cell/gui/CellAutomataGUI.java
View file @
b9e9db37
package
inf101.v1
7
.cell.gui
;
package
inf101.v1
8
.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
7
.cell.ICellAutomaton
;
import
inf101.v1
8
.cell.ICellAutomaton
;
/**
*
...
...
src/inf101/v1
7
/datastructures/GridTest.java
→
src/inf101/v1
8
/datastructures/GridTest.java
View file @
b9e9db37
package
inf101.v1
7
.datastructures
;
package
inf101.v1
8
.datastructures
;
import
static
org
.
junit
.
Assert
.*;
...
...
@@ -6,7 +6,7 @@ import java.util.Random;
import
org.junit.Test
;
import
inf101.v1
7
.cell.CellState
;
import
inf101.v1
8
.cell.CellState
;
public
class
GridTest
{
Random
random
=
new
Random
();
...
...
src/inf101/v1
7
/datastructures/IGrid.java
→
src/inf101/v1
8
/datastructures/IGrid.java
View file @
b9e9db37
package
inf101.v1
7
.datastructures
;
package
inf101.v1
8
.datastructures
;
import
inf101.v1
7
.cell.CellState
;
import
inf101.v1
8
.cell.CellState
;
public
interface
IGrid
{
...
...
src/inf101/v1
7
/datastructures/IList.java
→
src/inf101/v1
8
/datastructures/IList.java
View file @
b9e9db37
package
inf101.v1
7
.datastructures
;
package
inf101.v1
8
.datastructures
;
import
inf101.v1
7
.cell.CellState
;
import
inf101.v1
8
.cell.CellState
;
public
interface
IList
{
/**
...
...
src/inf101/v1
7
/datastructures/MyGrid.java
→
src/inf101/v1
8
/datastructures/MyGrid.java
View file @
b9e9db37
package
inf101.v1
7
.datastructures
;
package
inf101.v1
8
.datastructures
;
import
inf101.v1
7
.cell.CellState
;
import
inf101.v1
8
.cell.CellState
;
/**
*
...
...
src/inf101/v1
7
/datastructures/MyList.java
→
src/inf101/v1
8
/datastructures/MyList.java
View file @
b9e9db37
package
inf101.v1
7
.datastructures
;
package
inf101.v1
8
.datastructures
;
import
java.util.Arrays
;
import
inf101.v17.cell.CellState
;
import
inf101.v18.cell.CellState
;
public
class
MyList
implements
IList
{
private
int
length
;
...
...
src/inf101/v1
7
/datastructures/MyListTest.java
→
src/inf101/v1
8
/datastructures/MyListTest.java
View file @
b9e9db37
package
inf101.v1
7
.datastructures
;
package
inf101.v1
8
.datastructures
;
import
static
org
.
junit
.
Assert
.*;
...
...
@@ -6,9 +6,9 @@ import org.junit.After;
import
org.junit.Before
;
import
org.junit.Test
;
import
java.util.Random
;
import
inf101.v18.cell.CellState
;
import
inf101.v17.cell.CellState
;
import
java.util.Random
;
public
class
MyListTest
{
...
...
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