Compare commits
No commits in common. "fc073de1de7140423a81db8b3aaf71d9f3905188" and "6cd253d5f081b95498ddcf47cda3889928ced645" have entirely different histories.
fc073de1de
...
6cd253d5f0
@ -89,7 +89,7 @@ def apply_brute_force(players, preferences):
|
|||||||
print(result[2])
|
print(result[2])
|
||||||
|
|
||||||
# team_table(score, team0, team1)
|
# team_table(score, team0, team1)
|
||||||
return best_percentage[0]
|
return best_score[0]
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
@ -200,17 +200,9 @@ function App() {
|
|||||||
{SubmitButton({ person, players })}
|
{SubmitButton({ person, players })}
|
||||||
<p>now: click submit.</p>
|
<p>now: click submit.</p>
|
||||||
</div>
|
</div>
|
||||||
<p className="read-the-docs">
|
|
||||||
suggested teams are not updated right away. don't try to hack the
|
|
||||||
algorithm ;D
|
|
||||||
</p>
|
|
||||||
{TeamTables()}
|
{TeamTables()}
|
||||||
<p className="read-the-docs">
|
<p className="read-the-docs">
|
||||||
something not working? message <a href="https://t.me/x0124816">me</a>.
|
something not working? message <a href="https://t.me/x0124816">me</a>.
|
||||||
sources:{" "}
|
|
||||||
<a href="https://git.0124816.xyz/julius/teambuilding" key="gitea">
|
|
||||||
<img src="gitea.svg" alt="gitea" height="20" />
|
|
||||||
</a>
|
|
||||||
</p>
|
</p>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import * as React from "react";
|
||||||
import Table from "@mui/material/Table";
|
import Table from "@mui/material/Table";
|
||||||
import TableBody from "@mui/material/TableBody";
|
import TableBody from "@mui/material/TableBody";
|
||||||
import TableCell from "@mui/material/TableCell";
|
import TableCell from "@mui/material/TableCell";
|
||||||
@ -7,14 +8,12 @@ import TableRow from "@mui/material/TableRow";
|
|||||||
import Paper from "@mui/material/Paper";
|
import Paper from "@mui/material/Paper";
|
||||||
import data from "./table.json";
|
import data from "./table.json";
|
||||||
|
|
||||||
type Row = [player: string, fulfilled: number, total: number];
|
|
||||||
|
|
||||||
export default function TeamTables() {
|
export default function TeamTables() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{Object.entries(data).map(([teamname, rows]) => (
|
{Object.keys(data).map((teamname) => (
|
||||||
<>
|
<>
|
||||||
<h1>{teamname}</h1>
|
<h1>{teamname as String}</h1>
|
||||||
<TableContainer component={Paper}>
|
<TableContainer component={Paper}>
|
||||||
<Table
|
<Table
|
||||||
sx={{ m: "8px auto" }}
|
sx={{ m: "8px auto" }}
|
||||||
@ -28,7 +27,7 @@ export default function TeamTables() {
|
|||||||
</TableRow>
|
</TableRow>
|
||||||
</TableHead>
|
</TableHead>
|
||||||
<TableBody>
|
<TableBody>
|
||||||
{(rows as Row[]).map((row: Row) => (
|
{data[teamname].map((row) => (
|
||||||
<TableRow
|
<TableRow
|
||||||
key={row[0]}
|
key={row[0]}
|
||||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||||
|
Loading…
Reference in New Issue
Block a user