Home
last modified time | relevance | path

Searched refs:goStone_white (Results 1 – 24 of 24) sorted by relevance

/dports/games/cgoban/cgoban-1.9.14/src/
H A DgoScore.c58 score->territories[goStone_white], in goScore_str()
59 goGame_caps(game, goStone_white) + in goScore_str()
60 score->deadStones[goStone_white], in goScore_str()
63 scores[goStone_white], in goScore_str()
72 score->territories[goStone_white], in goScore_str()
73 score->livingStones[goStone_white], in goScore_str()
77 scores[goStone_white], in goScore_str()
88 msg_stoneNames[goStone_white], in goScore_str()
101 str_deinit(&ingTimes[goStone_white]); in goScore_str()
184 ++sekiArea[goStone_white]; in goScore_compute()
[all …]
H A DsgfIn.c214 sgf_setPlayerName(mc, goStone_white, arg_getStr(arg, &strOut)); in readFile()
228 sgf_playerRank(mc, goStone_white, arg_getStr(arg, &strOut)); in readFile()
257 sgf_setWhoseMove(mc, goStone_white); in readFile()
264 arg_getMove(arg, mc, goStone_white, &err); in readFile()
278 sgf_timeLeft(mc, goStone_white, i); in readFile()
292 sgf_stonesLeft(mc, goStone_white, i); in readFile()
308 arg_multi(arg, mc, sgfType_setBoard, goStone_white, &err); in readFile()
319 arg_multiRange(arg, mc, sgfType_territory, goStone_white, &err); in readFile()
H A DgoBoard.h25 goStone_white, goStone_black, goStone_edge, goStone_empty enumerator
51 #define goStoneIter(s) for ((s) = goStone_white; \
67 #define goStone_opponent(s) (goStone_white + goStone_black - (s))
H A DgoBoard.c41 board->pieces[i].hashStone[goStone_white] = goHash_zero; in goBoard_create()
43 board->pieces[i].hashKo[goStone_white] = goHash_zero; in goBoard_create()
53 board->pieces[i].hashStone[goStone_white] = goHash_init(r); in goBoard_create()
55 board->pieces[i].hashKo[goStone_white] = goHash_init(r); in goBoard_create()
168 assert((stone == goStone_black) || (stone == goStone_white)); in goBoard_addStone()
340 assert((type == goStone_white) || (type == goStone_black)); in addEmpty()
385 assert((stone == goStone_black) || (stone == goStone_white)); in goBoard_quickHash()
H A DgoPic.c227 toMove = goStone_white; in goPic_update()
234 if ((toMove == goStone_white) && (allowed & goPicMove_noWhite)) in goPic_update()
301 if (s == goStone_white) in goPic_update()
315 if ((toMove == goStone_white) && in goPic_update()
H A Dgoban.c96 goTimer_init(&g->timers[goStone_white], &game->time); in goban_create()
99 g->ingTimePenalties[goStone_black] = g->ingTimePenalties[goStone_white] = 0; in goban_create()
101 g->lastScores[goStone_black] = g->lastScores[goStone_white] = 0.0; in goban_create()
183 for (s = goStone_white; s <= goStone_black; ++s) { in goban_create()
326 for (s = goStone_white; s <= goStone_black; ++s) { in resize()
441 if (color == goStone_white) in goban_update()
453 ((g->game->whoseMove == goStone_white) && in goban_update()
539 } else if (g->lastScores[goStone_white] > g->lastScores[goStone_black]) in goban_update()
541 else if ((g->lastScores[goStone_white] < g->lastScores[goStone_black]) || in goban_update()
H A DsgfMap.c290 stone = goStone_white; in draw()
321 cgbuts_drawp(map->cgbuts, win, goStone_white, grey, in draw()
324 cgbuts_drawp(map->cgbuts, win, goStone_white, grey, in draw()
412 if (elem->gVal == goStone_white) in relocate()
421 if (elem->gVal == goStone_white) in relocate()
745 if (changed->gVal == goStone_white) in sgfMap_changeNode()
754 if (changed->gVal == goStone_white) in sgfMap_changeNode()
H A Dlocal.c98 sgf_setPlayerName(mc, goStone_white, white); in local_create()
202 grid_setStone(l->goban->iDec1, goStone_white, FALSE); in local_createSgf()
484 sgf_addTerritory(l->moves, goStone_white, in donePressed()
494 wScore = goban_score(l->goban, goStone_white); in donePressed()
498 msg_stoneNames[goStone_white], in donePressed()
H A DgoGame.c382 return(goStone_white); in goGame_whoseTurnOnMove()
385 return(goStone_white); in goGame_whoseTurnOnMove()
396 return(goStone_white); in goGame_whoseTurnOnMove()
400 return(goStone_white); in goGame_whoseTurnOnMove()
H A DsgfOut.c155 str_print(nodeOut, "PL[%c]", (me->gVal == goStone_white) ? 'W' : 'B'); in writeNode()
264 if (me->gVal == goStone_white) in printColor()
H A Dcontrol.c107 grid_setStone(ctrl->sPics[0], goStone_white, FALSE); in control_create()
121 grid_setStone(ctrl->sPics[1], goStone_white, FALSE); in control_create()
129 grid_setStone(ctrl->lGamePic, goStone_white, FALSE); in control_create()
H A DeditBoard.c178 if (me->gVal == goStone_white) in createSgf()
314 addPattern(eb, goStone_white, loc); in gridPressed()
595 sgf_addTerritory(eb->sgf, goStone_white, in donePressed()
808 if ((goBoard_stone(newBoard, i) == goStone_white) && in addPattern()
809 (goBoard_stone(eb->game->board, i) != goStone_white)) in addPattern()
810 sgf_addStone(eb->sgf, goStone_white, goBoard_loc2Sgf(newBoard, i)); in addPattern()
H A Darena.c89 if (color == goStone_white) { in gotMove()
H A Dcgbuts.h140 ((GoMarkType)((s - goStone_white) + goMark_smWhite))
H A DeditInfo.c38 {msg_wStoneName, sgfType_playerName, goStone_white},
40 {msg_wRank, sgfType_playerRank, goStone_white},
H A Dcgbuts.c456 if (piece == goStone_white) in cgbuts_drawp()
535 cgbuts_drawp(b, win, goStone_white, FALSE, x+(w+1)/4,y+(w+1)/4, w/2, in cgbuts_markPiece()
673 cgbuts_drawp(b, win, goStone_white, FALSE, x,y, w, 1, x,y,w,h); in drawWStoneChar()
768 cgbuts_drawp(but->iPacket, win, goStone_white, FALSE, in stoneGroup_draw()
770 cgbuts_drawp(but->iPacket, win, goStone_white, FALSE, in stoneGroup_draw()
/dports/games/cgoban/cgoban-1.9.14/src/client/
H A Dlook.c74 s = (look->state - cliLook_ready) + goStone_white; in cliLook_gotData()
128 str_chars(&look->name[goStone_white]), in gameReady()
129 str_chars(&look->rank[goStone_white]), in gameReady()
148 grid_setStone(goban->iDec1, goStone_white, FALSE); in gameReady()
196 goGame_move(game, goStone_white, in makeMoves()
210 goGame_pass(game, goStone_white, NULL); /* the "last move here" marker. */ in makeMoves()
H A Dboard.c78 sgf_setPlayerName(cli->sgf, goStone_white, str_chars(wName)); in cliBoard_create()
79 sgf_playerRank(cli->sgf, goStone_white, str_chars(wRank)); in cliBoard_create()
113 grid_setStone(cli->goban->iDec1, goStone_white, FALSE); in cliBoard_create()
144 data->actions->newGame(data->packet, goStone_white, size, handicap, komi, in cliBoard_create()
214 if (color == goStone_white) { in cliBoard_gotMove()
216 cli->data->actions->gotMove(cli->data->packet, goStone_white, loc); in cliBoard_gotMove()
H A Dgame.c201 g->board->goban->timers[goStone_white].timeLeft = time1; in cliGameList_gotMove()
207 g->board->goban->timers[goStone_white].aux = stonesLeft1; in cliGameList_gotMove()
267 stone = goStone_white; in cliGameList_gotMove()
669 winner = goStone_white; in cliGameList_gameGone()
678 winner = goStone_white; in cliGameList_gameGone()
688 winner = goStone_white; in cliGameList_gameGone()
697 winner = goStone_white; in cliGameList_gameGone()
721 winner = goStone_white; in cliGameList_gameGone()
730 winner = goStone_white; in cliGameList_gameGone()
H A Dmain.c131 grid_setStone(cMain->iPic, goStone_white, FALSE); in cliMain_create()
/dports/games/cgoban/cgoban-1.9.14/src/gmp/
H A Dsetup.c95 gs->players[goStone_white].progNameEntry = clp_lookup(cg->clp, in gmpSetup_create()
144 str_deinit(&gs->players[goStone_white].progName); in gmpSetup_destroy()
146 str_deinit(&gs->players[goStone_white].devName); in gmpSetup_destroy()
273 if (gs->players[goStone_white].type == gmpSetup_program) in okPressed()
380 if (but == gs->players[goStone_white].typeMenu) { in newType()
381 color = goStone_white; in newType()
468 if (!isGmpType[gs->players[goStone_white].type] && in newType()
486 if (but == gs->players[goStone_white].strIn1) { in newIn1()
487 color = goStone_white; in newIn1()
537 if (but == gs->players[goStone_white].strIn2) { in newIn2()
[all …]
H A Dplay.c118 sgf_setPlayerName(mc, goStone_white, white); in gmpPlay_create()
418 if (l->players[goStone_white].in >= 0) in passPressed()
525 sgf_addTerritory(l->moves, goStone_white, in donePressed()
535 wScore = goban_score(l->goban, goStone_white); in donePressed()
539 msg_stoneNames[goStone_white], in donePressed()
753 if (ge == gp->players[goStone_white].engine) in recvNewGame()
754 s = goStone_white; in recvNewGame()
771 if (gp->players[goStone_white].in < 0) { in recvNewGame()
832 if (ge == gp->players[goStone_white].engine) in recvUndo()
833 s = goStone_white; in recvUndo()
[all …]
H A Dclient.c94 (localColor != goStone_white)); in newGame()
H A Dengine.c313 result |= ge->actions->moveRecvd(ge, ge->packet, goStone_white, x, y); in processCommand()