Tag Archives: Python

Programming in Logic with Prolog

Posted by Pour Raphael Date: 2017-12-11

Motivation While Imperative Programming is very common, Logic Programming seems to be not ¬†popular at all. Why would anyone use it? It is an other kind of thinking about problems. There are problems where imperative programming languages, such as C,C++, Java, Python, …, will suck. It is more like making a set of rules/constraints rather […]

No pain, no gain vol. 2

Posted by Pour Raphael Date: 2016-01-28

Let’s go further. I just added a highscore which will be stored in a file. #Copyright 2016 Raphael Pour #License: GPL #Spread the luv import random import json import os if __name__ == ‘__main__’: filename = “.gain” gain = {} if os.path.exists(filename): gain = json.load(open(filename,’r’)) print “///////////////////////////” print “/// ///” print “/// N O P […]

No pain, no gain

Posted by Pour Raphael Date: 2016-01-26

You know this situation when sitting in front of your desk and study for some exams like “The science of Letters” aka “The Chronicles of finding x”… Next to some Nervennahrung[1] like nuts and sugar-based stuff, it’s hard to really concentrate in long term. I need some random sport activities which help me to focus. […]