Compare commits

...

2 Commits

Author SHA1 Message Date
d08ee55795
fix compilation errors 2023-11-18 16:52:22 -08:00
6a90931c57
format main.go 2023-11-18 16:51:19 -08:00

View File

@ -2,14 +2,14 @@ package main
import (
"fmt"
"git.chromaticdragon.app/kistaro/auctionsim/auctionsim"
"log"
"os"
"strconv"
"git.chromaticdragon.app/kistaro/auctionsim/auctionsim"
)
func main() {
num := 1000
num := int64(1000)
if len(os.Args) > 1 {
n, err := strconv.ParseInt(os.Args[1], 0, 64)
if err != nil {
@ -22,8 +22,8 @@ func main() {
}
price, bidder := auctionsim.RunAuction(
auctionsim.CappedBidderGenerator{
G: auctionsim.NormalestBidderGenerator(),
&auctionsim.CappedBidderGenerator{
G: auctionsim.NormalestBidderGenerator(),
Lim: num,
},
)