Enha: difference between cards for mime and revealed for all
This commit is contained in:
		| @@ -26,6 +26,7 @@ var ( | ||||
| 	// TODO: simplify; bot gets confused; so show it only unrevealed cards and last clue (maybe older clues as well); | ||||
| 	GuesserPrompt       = `we are playing alias;\nyou are to guess words of the %s team (you want open %s cards) by given clue and a number of meant guesses;\nplease return your guesses and words that could be meant by the clue, but you do not wish to open yet, in json like:\n{\n\"guesses\": [\"word1\", \"word2\", ...],\n\"could_be\": [\"this\", \"that\", ...]\n}\nthe team who openes all their cards first wins.\nplease return json only.\nunopen Blue cards left: %d;\nunopen Red cards left: %d;\nhere is the cards (and other info), you need to choose revealed==false words:\n%s` | ||||
| 	GuesserSimplePrompt = `we are playing game of alias;\n you were given a clue: \"%s\";\nplease return your guess and words that could be meant by the clue, but you do not wish to open yet, in json like:\n{\n\"guess\": \"most_relevant_word_to_the_clue\",\n\"could_be\": [\"this\", \"that\", ...]\n}\nhere is the words that left:\n%v` | ||||
| 	MimeSimplePrompt    = `we are playing alias;\nyou are to give a clue to your team so they could open these words: %v;\nhere are the words of opposite team you should avoid: %v;\nand here is a black word that is critical not to pick: %s;\nplease return your clue, number of cards to open and what words you mean them to find using that clue in json like:\n{\n\"clue\": \"one-word-noun\",\n\"number\": \"number-from-0-to-9\",\n\"words_I_mean_my_team_to_open\": [\"this\", \"that\", ...]\n}\nplease return json only.\nunopen Blue cards left: %d;\nunopen Red cards left: %d;` | ||||
| ) | ||||
|  | ||||
| func convertToSliceOfStrings(value any) ([]string, error) { | ||||
| @@ -177,7 +178,6 @@ func (b *Bot) BotMove() { | ||||
| 	// form prompt | ||||
| 	prompt := b.BuildPrompt(room) | ||||
| 	b.log.Debug("got prompt", "prompt", prompt) | ||||
| 	room.LogJournal = append(room.LogJournal, b.BotName+" got prompt: "+prompt) | ||||
| 	// call llm | ||||
| 	llmResp, err := b.CallLLM(prompt) | ||||
| 	if err != nil { | ||||
| @@ -207,6 +207,8 @@ func (b *Bot) BotMove() { | ||||
| 		} | ||||
| 		room.ActionHistory = append(room.ActionHistory, action) | ||||
| 		room.MimeDone = true | ||||
| 		meant := fmt.Sprintf(b.BotName+" meant to open: %v", tempMap["words_I_mean_my_team_to_open"]) | ||||
| 		room.LogJournal = append(room.LogJournal, meant) | ||||
| 		eventPayload = mimeResp.Clue + mimeResp.Number | ||||
| 		guessLimitU64, err := strconv.ParseUint(mimeResp.Number, 10, 8) | ||||
| 		if err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder