Skip to content

Commit

Permalink
after tournament uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
AAA authored and AAA committed Nov 2, 2019
1 parent 9622da4 commit d213f23
Show file tree
Hide file tree
Showing 80 changed files with 8,958 additions and 15 deletions.
Binary file modified .DS_Store
Binary file not shown.
52 changes: 45 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,53 @@
# RETO de Semana i: AI-AirHockey
Este es el repositorio para nuestra actividad de semana i.
# CHALLENGE for Week i: AI-AirHockey Competition

## Objetivo del reto
__Tecnologico de Monterrey, campus Santa Fe__

Crear un algoritmo que permita determinar los movimientos del mazo buscando anotar gol en la portería contraria.
__Organizer:__ Dr. Leonardo Chang

_Se podrá utilizar todo tipo de algoritmos, desde algoritmos que implementen estrategias propias de los programadores, algoritmos adaptados de otros problemas o algoritmos de aprendizaje automático._

Equipos de hasta 3 estudiantes.

**Para todos los detalles revise ~/docs/20191028_AI-AirHockey-Semanai_.pdf**
## Challenge Objective

Create an algorithm that allows to determine the movements of the air hockey paddle looking to score goal in the opposite side.

_All kinds of algorithms can be used, from algorithms that implement programmers' own strategies, algorithms adapted from other problems or machine learning algorithms._

Teams of up to 3 students.

**For all the details, see ~/docs/20191028_AI-AirHockey-Semanai_.pdf**


# TOURNAMENT RESULTS (WINNERS)!!!

Congratulations to all the winners of the challenge!!

| Competition | Team |
|:------ | :----- |
| Absolute Winner | Blazers |
| Category 123 | Clippy |
| Category 456 | Tlacuachis B |
| Category 789 | Blazers |

_You can find all the competing solutions in ~/players/_

**DON'T MISS IT:** _Watch all the final competition games in ~/videos/_

-------------------
## Absolute winner competition
![comp](docs/imgs_competition/f_w.png)
![comp](docs/imgs_competition/f_l.png)

-------------------
## Category 123 competition
![comp](docs/imgs_competition/123_w.png)
![comp](docs/imgs_competition/123_l.png)

-------------------
## Category 456 competition
![comp](docs/imgs_competition/456_w.png)
![comp](docs/imgs_competition/456_l.png)

-------------------
## Category 789 competition
![comp](docs/imgs_competition/789_w.png)
![comp](docs/imgs_competition/789_l.png)
Binary file added docs/.DS_Store
Binary file not shown.
Binary file added docs/imgs_competition/.DS_Store
Binary file not shown.
Binary file added docs/imgs_competition/123_l.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs_competition/123_w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs_competition/456_l.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs_competition/456_w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs_competition/789_l.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs_competition/789_w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs_competition/f_l.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs_competition/f_w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion gamecore.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, p1, p2, board, init_state, error_rate, gui_core):
self.max_idle_moves = 100 # max number of idle moves after init position, 100
self.winning_points = 7 # goals to win, 7
self.max_time = 0.7 # max time (seconds) for one move, i.e., player.next_move, 0.7
self.game_max_ticks = 2500 # max ticks (moves) for a game, 2500
self.game_max_ticks = 3500 # max ticks (moves) for a game, 2500


def begin_game(self):
Expand Down
3 changes: 2 additions & 1 deletion player_A.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def next_move(self, current_state):
'y': current_state['board_shape'][0]/2}

# find if puck path is inside my interest area
roi_radius = current_state['board_shape'][0] * current_state['goal_size'] * 2
# roi_radius = current_state['board_shape'][0] * current_state['goal_size'] * 2
roi_radius = current_state['board_shape'][1] / 4 + 30
pt_in_roi = None
for p in path:
if utils.distance_between_points(p[0], self.my_goal_center) < roi_radius:
Expand Down
342 changes: 342 additions & 0 deletions player_BLAZERS.py

Large diffs are not rendered by default.

413 changes: 413 additions & 0 deletions player_Clippy.py

Large diffs are not rendered by default.

553 changes: 553 additions & 0 deletions player_Tlacuachis_B.py

Large diffs are not rendered by default.

Loading

0 comments on commit d213f23

Please sign in to comment.