This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- pomodoro timer widget | |
pomodoro = {} | |
-- tweak these values in seconds to your liking | |
pomodoro.pause_duration = 300 | |
pomodoro.work_duration = 1200 | |
pomodoro.pause_title = "Pause finished." | |
pomodoro.pause_text = "Get back to work!" | |
pomodoro.work_title = "Pomodoro finished." | |
pomodoro.work_text = "Time for a pause!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Include guard | |
//* Para que compilador no compile dos veces lo mismo | |
#ifndef __CHARACTER_H | |
#define __CHARACTER_H | |
#endif | |
#ifndef __PLAYER_H | |
#define __PLAYER_H | |
//forward declared dependences |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_liberties(self, pos, color): | |
""" Función que comprueba las libertades que tiene el grupo al que | |
pertenece la posición pasada por parámetro. | |
:Param pos: Posición perteneciente al grupo en la buscaremos si sus | |
vecinos pertenecen o no al grupo. | |
:Type pos: tuple. | |
:Param group: grupo de posiciones que se encuentran dentro del grupo. | |
:Type group: set. """ | |
liberties = set() |
NewerOlder