Ejemplo n.º 1
0
 def reset(self):
     helper.reset()
     self.canvas.delete("all")
     self.tkbugs = {}
     self.tkfoods = {}
     self.gui['foodbox'].delete(0, 'end')
     self.gui['bugratebox'].delete(0, 'end')
     self.gui['bugratetimebox'].delete(0, 'end')
     self.gui['bugratetimebox'].insert(INSERT, '100')
Ejemplo n.º 2
0
############################
#### Run the script ########
############################

# commands :
# stop
# config Threshold, gain, level
# tx [filename]
# tx ShortLFM
# tx LFM
# ref [filename]
# rx [samples] tmp/[filename]

for m in modems:
    try:
        reset('192.168.0.' + m)
    except:
        print("# Cannot connect to modem : " + m)
        continue
    runCMD('config ' + ' '.join(c[m]) + '\n', m)

    runCMD('ref tmp/ShortLFM', '147')
    runCMD('rx ' + str(Fs * 5) + ' tmp/rx_OFDM_Second', '147')

#for m in modems:
#try:
#reset('192.168.0.' + m)
#except:
#print("# Cannot connect to modem : " + m )
#continue
#runCMD('config ' + ' '.join(c[m]) + '\n',m)
Ejemplo n.º 3
0
from helper import reset
from game import play_game, player_input

if __name__ == "__main__":
    play_again = True
    player_1, player_2 = player_input()

    while play_again:
        i, sample, valid = reset()
        play_game(i, valid, sample, player_1, player_2)
        replay_decide = input('Do you want to play again? Choose Y or N: ')
        play_again = replay_decide.upper() == 'Y'
    pass