Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
basic-example
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
davis
basic-example
Commits
6e799cf1
Commit
6e799cf1
authored
6 years ago
by
Emmanuel Godard
Browse files
Options
Downloads
Patches
Plain Diff
add new NoGUI task
parent
d8460438
No related branches found
No related tags found
No related merge requests found
Pipeline
#2378
passed
6 years ago
Stage: build
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
build.gradle
+6
-1
6 additions, 1 deletion
build.gradle
src/RandomWalkRing.java
+5
-2
5 additions, 2 deletions
src/RandomWalkRing.java
with
12 additions
and
3 deletions
.gitlab-ci.yml
+
1
−
0
View file @
6e799cf1
...
...
@@ -24,4 +24,5 @@ build:
-
./gradlew clean
-
./gradlew downloadAndUnzipFile
-
./gradlew assemble
-
./gradlew helloNoX
This diff is collapsed.
Click to expand it.
build.gradle
+
6
−
1
View file @
6e799cf1
...
...
@@ -14,9 +14,14 @@ apply plugin: "application"
// Basic task to launch davis with appropriate arguments :
// -n <network> -i <id> -s <size> -al <algo>
task
hello
(
type:
Exec
,
group:
"Application"
,
description:
"Run default Davis"
)
{
commandLine
'davis-beta/bin/udavis'
,
'-n'
,
'src/RingAnon2AgentsSym.java'
,
'-i'
,
'RandomIds'
,
'-s'
,
'18'
,
'-al'
,
'src/RandomWalkRing.java'
commandLine
davisInstall
+
File
.
separator
+
'davis-beta/bin/udavis'
,
'-n'
,
'src/RingAnon2AgentsSym.java'
,
'-i'
,
'RandomIds'
,
'-s'
,
'18'
,
'-al'
,
'src/RandomWalkRing.java'
}
// Basic task to launch davis with appropriate arguments without GUI:
// -n <network> -i <id> -s <size> -al <algo>
task
helloNoX
(
type:
Exec
,
group:
"Application"
,
description:
"Run default Davis without GUI"
)
{
commandLine
davisInstall
+
File
.
separator
+
'davis-beta/bin/udavis-nogui'
,
'-n'
,
'src/RingAnon2AgentsSym.java'
,
'-i'
,
'RandomIds'
,
'-s'
,
'18'
,
'-al'
,
'src/RandomWalkRing.java'
}
def
davisFiles
=
"${projectDir}/davis-beta/"
println
(
"${davisFiles}"
)
...
...
This diff is collapsed.
Click to expand it.
src/RandomWalkRing.java
+
5
−
2
View file @
6e799cf1
...
...
@@ -11,7 +11,10 @@ public class RandomWalkRing extends RDVRingAgent {
}
public
void
randomWalk
(
Object
board
)
{
if
(
random
.
nextBoolean
())
goLeft
();
else
goRight
();
if
(
random
.
nextBoolean
())
{
goLeft
();
}
else
if
(
random
.
nextBoolean
())
{
goRight
();
}
else
stay
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment