Not logged in. · Lost password · Register

oh01ahyz
Member since Oct 2018
18 posts
Subject: Java in further exercises
Dear tutors,

I am struggling with the fact that we shall implement the Kalah program in Java. Do any further exercises require the use of Java as a programming language?

Thank you and kind regards!
Jazzpirate
Member since Oct 2016
767 posts
Do any further exercises require the use of Java as a programming language?
Probably not - in general we want you to learn prolog here (actually: to think logically, for which prolog is a good tool), so that's what we will prefer. You do not want to implement a more advanced kalah-solving algorithm in prolog though, and java is the one language that we can rather reliably use in the knowledge that the vast majority of students will know it.
oh01ahyz
Member since Oct 2018
18 posts
In reply to post #1
I have understanding for this and I agree, this is the best solution.

I will then write my own Kalah using Python (with functionalities as required by the Kalah task and probably some modes where the computer plays against itself or against a player). This excludes me from the bonus points, but I will still have the same learning effect for the exam.

If you would be willing to grade a Python program though, I would be double happy :)
Jazzpirate
Member since Oct 2016
767 posts
I will then write my own Kalah using Python (with functionalities as required by the Kalah task and probably some modes where the computer plays against itself or against a player). This excludes me from the bonus points, but I will still have the same learning effect for the exam.

If you would be willing to grade a Python program though, I would be double happy :)
The latter you'll have to ask your tutor for - but the sad thing is that this precludes you from taking part in the tournament, since we use the java-framework for that.

But I very much assume that if you know python well enough to write a Kalah-AI, the effort of learning java sufficiently to translate your program is probably minimal, assuming you've ever worked with an object oriented language - I'd give it a try if I were you ;)
Or even better, screw java and learn to do it in scala, which is java done properly ;) (not coincidentally, the framework is actually written in scala)
yawkat
faui2k15.de
Avatar
Member since Sep 2015
114 posts
+4 tyr, Stella, Marcel[Inf], LasagneAlForno
Da muss ich voll und ganz zustimmen. Mit scala hat man die Lesbarkeit von Perl, die Binärkompatibilität von C++, die Performance von Python, den Overhead von Java, die Buildsysteme von C und die community von Rust, alles in einer Sprache.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Datenschutz | Kontakt
Powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2011 by Yves Goergen