Back to index

gcompris  8.2.2
Classes | Functions
algorithm Namespace Reference

Classes

class  Gcompris_algorithm

Functions

def algo
def algo1
def algo2
def algo3

Function Documentation

def algorithm.algo (   index)

Definition at line 31 of file algorithm.py.

00031 
def algo(index): return index %4
def algorithm.algo1 (   index)

Definition at line 32 of file algorithm.py.

00032 
def algo1(index): return index %3
def algorithm.algo2 (   index)

Definition at line 33 of file algorithm.py.

00033 
def algo2(index): return index %5
def algorithm.algo3 (   i)

Definition at line 34 of file algorithm.py.

00034 
00035 def algo3(i):
00036   if i %6 > 2:
00037    return 2 - i %3
00038   else:
00039    return i %3