2014-01-17 00:20:59 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
2014-04-10 10:02:37 +02:00
|
|
|
|
|
|
|
'''
|
|
|
|
------------------------------------------
|
|
|
|
|
|
|
|
WireChem - The new chemistry game
|
|
|
|
|
|
|
|
Programme principal
|
|
|
|
|
|
|
|
(C) Copyright 2013-2014 Nicolas Hordé
|
|
|
|
Licence GPL V3.0
|
|
|
|
|
|
|
|
------------------------------------------
|
|
|
|
'''
|
2014-05-04 11:44:38 +02:00
|
|
|
import datetime
|
|
|
|
import math
|
2014-01-17 00:20:59 +01:00
|
|
|
import pyglet
|
|
|
|
import copy
|
|
|
|
import csv
|
|
|
|
import random
|
|
|
|
import time
|
|
|
|
import operator
|
2014-03-08 20:23:05 +01:00
|
|
|
import shelve
|
|
|
|
import os
|
2014-05-17 11:50:49 +02:00
|
|
|
import sys
|
2014-01-17 00:20:59 +01:00
|
|
|
from pyglet.gl import *
|
|
|
|
from pyglet.window import mouse
|
|
|
|
from pyglet.window import key
|
|
|
|
from pyglet import clock
|
|
|
|
from pyglet import image
|
2014-03-08 20:23:05 +01:00
|
|
|
from os.path import expanduser
|
2014-01-17 00:20:59 +01:00
|
|
|
|
|
|
|
''' *********************************************************************************************** '''
|
|
|
|
''' Lancement & initialisation '''
|
|
|
|
|
|
|
|
|