Skip to content

Commit 741f80b

Browse files
author
insalgo
committed
Removed tournament Makefile
1 parent 78520f7 commit 741f80b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

modules/game/tournament.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,17 @@ async def safe_game(game, semaphore, bot, log, progress: Progress, players, args
7373
return players, winner
7474

7575
def make(game, *args):
76+
return # DO NOT USE, MAKEFILE IS NOT WORKING ANYMORE
7677
args = *("make", "--directory", str(game.game_path)), *args
7778
run(args, capture_output=True)
7879

7980
async def tournament(ctx, game, nb_players, src_dir, args, games_args=None):
8081

8182
await ctx.channel.send(content=f"Starting **{game.name}** tournament")
8283

83-
# Compile programs
84-
make(game, f"SRCDIR={src_dir.name}")
85-
await ctx.channel.send("Compilation done" )
84+
# # Compile programs -> no don't
85+
# make(game, f"SRCDIR={src_dir.name}")
86+
# await ctx.channel.send("Compilation done" )
8687

8788
# Get all programs
8889
out_dir: Path = game.ai_path
@@ -136,7 +137,7 @@ async def tournament(ctx, game, nb_players, src_dir, args, games_args=None):
136137
scores[winner.name] += 1
137138

138139
scoreboard = sorted(scores.items(), key=lambda score: score[1], reverse=True)
139-
make(game, "clean")
140+
# make(game, "clean") # big mistake
140141

141142
return scoreboard
142143

0 commit comments

Comments
 (0)