This commit is contained in:
Alexander Khodyrev 2024-09-17 18:08:09 +03:00
parent 7cdb8a123a
commit 03cd183a26
3 changed files with 698 additions and 3 deletions

View file

@ -1,3 +1,20 @@
// This file is part of birdtown-leaderboard, and is © 2024 Alexander Khodyrev.
//
// Full source code is available at https://git.akho.name/akho/birdtown-leaderboard
//
// birdtown-leaderboard is free software: you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
// birdtown-leaderboard is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
// for more details.
//
// You should have received a copy of the GNU Affero General Public License along
// with birdtown-leaderboard. If not, see <https://www.gnu.org/licenses/>.
package main
import (
@ -16,9 +33,9 @@ import (
)
const (
numScores = 5
maxNameLength = 9
dailyDiscount = 0.99
numScores = 5
maxNameLength = 9
dailyDiscount = 0.99
)
type scoreStore struct {