Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
UpdatedHanoi
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yingjian Wang
UpdatedHanoi
Commits
52974137
Unverified
Commit
52974137
authored
3 years ago
by
wangyingjian
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update Constraints.jrag
parent
5f33c44b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/jastadd/hanoi/Constraints.jrag
+1
-7
1 addition, 7 deletions
src/main/jastadd/hanoi/Constraints.jrag
with
1 addition
and
7 deletions
src/main/jastadd/hanoi/Constraints.jrag
+
1
−
7
View file @
52974137
...
...
@@ -34,12 +34,6 @@ aspect Connectives{
eq Equal.eval(){
return this.getLeft().eval() - this.getRight().eval()==0;
}
eq SelfEq.eval(){//has smallest disk on top
return this.getTerm().eval()==1;
}
eq SelfComp.eval(){//has no disk on top
return this.getTerm().eval()<0;
}
public double Term.eval(){
return 0;
}
...
...
@@ -67,4 +61,4 @@ aspect Connectives{
String[] str=new String[]{};
return str;
}
}
\ No newline at end of file
}
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