about summary refs log tree commit diff
path: root/src/challenge.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/challenge.go')
-rw-r--r--src/challenge.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/challenge.go b/src/challenge.go
index a1f9893..38cffee 100644
--- a/src/challenge.go
+++ b/src/challenge.go
@@ -4,6 +4,8 @@ type Challenge struct {
 	Name string
 	Description string
 	Flag string // this should never leave the server
+	FoundFlag bool
+	FlagTries uint
 	Container string // this could, but is not required as well
 	Category string
 }
@@ -12,6 +14,7 @@ type StrippedChallenge struct {
 	Name string `json:"name"`
 	Description string `json:"description"`
 	Category string `json:"category"`
+	FoundFlag bool `json:"foundFlag"`
 }
 
 func stripChallenge(c Challenge) (StrippedChallenge) {
@@ -19,5 +22,6 @@ func stripChallenge(c Challenge) (StrippedChallenge) {
 		Name: c.Name,
 		Description: c.Description,
 		Category: c.Category,
+		FoundFlag: c.FoundFlag,
 	}
 }