sorteador dos crias
- #cs2
- #tool
- #windows
a windows app that decides who plays the next cs2 match, on which team, on which map, and from which side.
c# · wpf · xaml
on this page
eleven of us, ten slots, and every night the same argument about who sits out.

##Briefing
TARGET windows 10 / 11
RUNTIME .net framework 4, ships with windows
BUILD csc.exe from the framework, no sdk
SIZE one exe, no installer
MODES players, 3x3, 4x4, 5x5
MAPS veto md1, veto md3, random draw##Who plays
the player list is the group, not tonight. click a name to mark them off for
the night; they stay on the list and the draw skips them. the counter reads
10 de 11 on.
whoever sat out the last registered match gets a ★ and a guaranteed slot in the next one. drawing again before you play does not move the queue, so a reroll cannot push someone out twice.

pairs that must never share a team go in nunca no mesmo time. the default
is felps ≠ vitao. in 25 test draws of 5x5 they both played in 18 and landed
on the same side in none.
##Maps
the pool starts with ancient, anubis, dust2, inferno, mirage, nuke and train; overpass, vertigo, office and italy are there switched off. custom maps can be added. the pool is saved beside the exe.
- veto md1: teams alternate bans until one map is left. a coin decides who starts.
- veto md3: ban, ban, pick, pick, ban, ban, decider.
- sortear mapa: a slowing spin over the active pool.

once a map is decided, copiar comando do console puts this on the clipboard:
game_type 0; game_mode 1; map de_infernopaste it into the cs2 console and the map loads in offline competitive.

##Sides
the coin flips for team a; team b takes the other side. the emblems are drawn
for this app, not taken from the game. drop a ct.png and tr.png next to the
exe to replace them.

##Score
time a venceu and time b venceu register the match. the history keeps wins, games, win rate and how many times each player sat out, plus the last four matches. copiar pro discord formats the teams, sides, bench and map for the group chat.

##Files
everything is plain text beside the exe, so a backup is a folder copy.
jogadores.txt the group; a leading # means off tonight
separados.txt never-same-team pairs, one per line
mapas.txt the map pool; a leading # means switched off
historico.txt one registered match per linethe build write-up covers how it is compiled and why windows still warns about it.