Skip to content

lepton9/vbdist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

350 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Volleyball team maker

Build Release

Makes N teams of M players based on given attributes

Installing and compiling

Install dependencies

Arch:

sudo pacman -S ncurses sqlite3

Ubuntu/Debian:

sudo apt-get install libncurses5-dev libncursesw5-dev libsqlite3-dev

Build from source

Output binary in bin/

git clone https://github.com/lepton9/vbdist.git && cd vbdist
make dep
make

Usage

vbdist [options]

  Options:
    -d, --database  <path>  Path to SQLite database
    -f, --file      <path>  Path to textfile
    -t, --teams     <int>   Set number of teams
    -p, --players   <int>   Set number of players in a team
    -c, --config            Print config location
    -l, --log       <path>  Set custom log file path
    -v, --viewlog   <?int>  Print the latest lines in the log (default: 10)
    -h, --help              Print this help

Example

vbdist -d sql/database.db

Player file format

Using a database

List of players IDs in the database.

1000
1001
...
1010

Using only a text file (deprecated)

# Line starting with '#' is a comment

# Name | Defence Spike Serve Setting Saving Consistency

name1 | 1 2 3 4 5 5
name2 | 5 5 5 5 5 5
...
nameN | 1 1 1 1 1 1

Banning player combinations

Ban player combinations using !. All the players with names on the same line are banned with the first player on the line. Use IDs if using a database; otherwise, use names.

!p1 - p2
!p3 - p4 - p5

Using ?, you can ban all the player combinations on the line. Every player on the line will be in different teams if possible.

?p1 - p2 - p3

Forcing teammates

You can force teammates to be on the same team using +. All the players connected are in the same team. Given TEAM_SIZE is the maximum amount of connected players.

+p6 - p7
+p7 - p8
+p9 - p10 - p11

About

A balanced team maker

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published