2022-11-19 00:10:00 +01:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en-US" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=11" / >
2024-02-16 21:59:07 +01:00
< meta name = "generator" content = "Doxygen 1.10.0" / >
2022-11-19 00:10:00 +01:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > LogDoctor: CrissCross Class Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
2024-02-16 21:59:07 +01:00
< script type = "text/javascript" src = "clipboard.js" > < / script >
< script type = "text/javascript" src = "cookie.js" > < / script >
2022-11-19 00:10:00 +01:00
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr id = "projectrow" >
< td id = "projectlogo" > < img alt = "Logo" src = "dox_logo.png" / > < / td >
< td id = "projectalign" >
2024-05-07 19:49:56 +02:00
< div id = "projectname" > LogDoctor< span id = "projectnumber" >   4.01< / span >
2022-11-19 00:10:00 +01:00
< / div >
2023-02-12 23:33:34 +01:00
< div id = "projectbrief" > Parse Apache2/Nginx/IIS logs and view dinamically generated statistics< / div >
2022-11-19 00:10:00 +01:00
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2024-02-16 21:59:07 +01:00
<!-- Generated by Doxygen 1.10.0 -->
2022-11-19 00:10:00 +01:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
2024-02-16 21:59:07 +01:00
$(function() { init_search(); });
2022-11-19 00:10:00 +01:00
});
/* @license-end */
< / script >
< div id = "main-nav" > < / div >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< div id = "MSearchResults" >
< div class = "SRPage" >
< div id = "SRIndex" >
< div id = "SRResults" > < / div >
< div class = "SRStatus" id = "Loading" > Loading...< / div >
< div class = "SRStatus" id = "Searching" > Searching...< / div >
< div class = "SRStatus" id = "NoMatches" > No Matches< / div >
< / div >
< / div >
< / div >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pri-methods" > Private Member Functions< / a > |
< a href = "classCrissCross-members.html" > List of all members< / a > < / div >
2024-02-16 21:59:07 +01:00
< div class = "headertitle" > < div class = "title" > CrissCross Class Reference< span class = "mlabels" > < span class = "mlabel" > final< / span > < / span > < / div > < / div >
2022-11-19 00:10:00 +01:00
< / div > <!-- header -->
< div class = "contents" >
< p > < a class = "el" href = "classCrissCross.html" title = "CrissCross." > CrissCross< / a > .
2024-02-16 21:59:07 +01:00
< a href = "#details" > More...< / a > < / p >
2022-11-19 00:10:00 +01:00
2022-11-28 00:12:54 +01:00
< p > < code > #include < game.h> < / code > < / p >
2022-11-19 00:10:00 +01:00
< div class = "dynheader" >
Inheritance diagram for CrissCross:< / div >
< div class = "dyncontent" >
< div class = "center" >
< img src = "classCrissCross.png" alt = "" / >
< / div > < / div >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "pri-methods" name = "pri-methods" > < / a >
Private Member Functions< / h2 > < / td > < / tr >
2023-10-22 17:46:43 +02:00
< tr class = "memitem:a3d3d3eeb2b7666c4411c89cf153048e0" id = "r_a3d3d3eeb2b7666c4411c89cf153048e0" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a3d3d3eeb2b7666c4411c89cf153048e0" name = "a3d3d3eeb2b7666c4411c89cf153048e0" > < / a >
2022-11-19 00:10:00 +01:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > endTurn< / b > ()< / td > < / tr >
< tr class = "memdesc:a3d3d3eeb2b7666c4411c89cf153048e0" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Ends the current turn. < br / > < / td > < / tr >
< tr class = "separator:a3d3d3eeb2b7666c4411c89cf153048e0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2023-10-22 17:46:43 +02:00
< tr class = "memitem:acb1ca7cc584c4c2e21e94d88c794c06a" id = "r_acb1ca7cc584c4c2e21e94d88c794c06a" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "acb1ca7cc584c4c2e21e94d88c794c06a" name = "acb1ca7cc584c4c2e21e94d88c794c06a" > < / a >
2022-11-19 00:10:00 +01:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > nextTurn< / b > ()< / td > < / tr >
< tr class = "memdesc:acb1ca7cc584c4c2e21e94d88c794c06a" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Switches to the next turn. < br / > < / td > < / tr >
< tr class = "separator:acb1ca7cc584c4c2e21e94d88c794c06a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-02-16 21:59:07 +01:00
< tr class = "memitem:adfd19bd142a7c0f4a76b84bab21189c1" id = "r_adfd19bd142a7c0f4a76b84bab21189c1" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "adfd19bd142a7c0f4a76b84bab21189c1" name = "adfd19bd142a7c0f4a76b84bab21189c1" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < b > checkVictory< / b > () noexcept< / td > < / tr >
< tr class = "memdesc:adfd19bd142a7c0f4a76b84bab21189c1" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Checks whether somebody won or not. < br / > < / td > < / tr >
< tr class = "separator:adfd19bd142a7c0f4a76b84bab21189c1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae587a35271f93f0247c09f52c83a419d" id = "r_ae587a35271f93f0247c09f52c83a419d" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "ae587a35271f93f0247c09f52c83a419d" name = "ae587a35271f93f0247c09f52c83a419d" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < b > gameDraw< / b > () const noexcept< / td > < / tr >
< tr class = "memdesc:ae587a35271f93f0247c09f52c83a419d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Checks whether the game is draw or not. < br / > < / td > < / tr >
< tr class = "separator:ae587a35271f93f0247c09f52c83a419d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a771c0a29f4e7d95f883c425f5d6ffa3f" id = "r_a771c0a29f4e7d95f883c425f5d6ffa3f" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a771c0a29f4e7d95f883c425f5d6ffa3f" name = "a771c0a29f4e7d95f883c425f5d6ffa3f" > < / a >
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > victory< / b > () noexcept< / td > < / tr >
< tr class = "memdesc:a771c0a29f4e7d95f883c425f5d6ffa3f" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Someone won, process the victory. < br / > < / td > < / tr >
< tr class = "separator:a771c0a29f4e7d95f883c425f5d6ffa3f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:acb0701307d815ab2c8bee7980bebf4bd" id = "r_acb0701307d815ab2c8bee7980bebf4bd" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "acb0701307d815ab2c8bee7980bebf4bd" name = "acb0701307d815ab2c8bee7980bebf4bd" > < / a >
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > draw< / b > () noexcept< / td > < / tr >
< tr class = "memdesc:acb0701307d815ab2c8bee7980bebf4bd" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The match is over but nobody won, the game is draw. < br / > < / td > < / tr >
< tr class = "separator:acb0701307d815ab2c8bee7980bebf4bd" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a9546863583b69a7246a216794b88d062" id = "r_a9546863583b69a7246a216794b88d062" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a9546863583b69a7246a216794b88d062" name = "a9546863583b69a7246a216794b88d062" > < / a >
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > AI_playTurn< / b > () noexcept< / td > < / tr >
< tr class = "memdesc:a9546863583b69a7246a216794b88d062" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Main function for the AI to play its turn. < br / > < / td > < / tr >
< tr class = "separator:a9546863583b69a7246a216794b88d062" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a2fc7d3a6f907718ea430e138681ba328" id = "r_a2fc7d3a6f907718ea430e138681ba328" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "#a2fc7d3a6f907718ea430e138681ba328" > AI_updateWeights< / a > () noexcept< / td > < / tr >
< tr class = "memdesc:a2fc7d3a6f907718ea430e138681ba328" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Updates the weights of the tiles. < br / > < / td > < / tr >
< tr class = "separator:a2fc7d3a6f907718ea430e138681ba328" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aaa6af51d74e3c8250c0fdf8b734bff16" id = "r_aaa6af51d74e3c8250c0fdf8b734bff16" > < td class = "memItemLeft" align = "right" valign = "top" > unsigned  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "#aaa6af51d74e3c8250c0fdf8b734bff16" > AI_makeChoice< / a > () const noexcept< / td > < / tr >
< tr class = "memdesc:aaa6af51d74e3c8250c0fdf8b734bff16" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Makes the choice depending on the weights. < br / > < / td > < / tr >
< tr class = "separator:aaa6af51d74e3c8250c0fdf8b734bff16" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-11-19 00:10:00 +01:00
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
2023-02-11 20:23:44 +01:00
< div class = "textblock" > < p > < a class = "el" href = "classCrissCross.html" title = "CrissCross." > CrissCross< / a > . < / p >
< p > Player vs AI criss-cross game < / p >
2022-11-19 00:10:00 +01:00
< / div > < h2 class = "groupheader" > Member Function Documentation< / h2 >
2024-02-16 21:59:07 +01:00
< a id = "aaa6af51d74e3c8250c0fdf8b734bff16" name = "aaa6af51d74e3c8250c0fdf8b734bff16" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aaa6af51d74e3c8250c0fdf8b734bff16" > ◆   < / a > < / span > AI_makeChoice()< / h2 >
2022-11-19 00:10:00 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2023-10-22 17:46:43 +02:00
< td class = "memname" > unsigned CrissCross::AI_makeChoice < / td >
2022-11-19 00:10:00 +01:00
< td > (< / td >
2024-02-16 21:59:07 +01:00
< td class = "paramname" > < span class = "paramname" > < / span > < / td > < td > )< / td >
2023-01-27 15:37:29 +01:00
< td > const< / td >
2022-11-19 00:10:00 +01:00
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2024-02-16 21:59:07 +01:00
< span class = "mlabels" > < span class = "mlabel" > private< / span > < span class = "mlabel" > noexcept< / span > < / span > < / td >
2022-11-19 00:10:00 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Makes the choice depending on the weights. < / p >
< dl class = "section return" > < dt > Returns< / dt > < dd > The tile to select < / dd > < / dl >
2024-02-16 21:59:07 +01:00
< dl class = "section see" > < dt > See also< / dt > < dd > < a class = "el" href = "#a9546863583b69a7246a216794b88d062" title = "Main function for the AI to play its turn." > AI_playTurn()< / a > ; < / dd > < / dl >
2022-11-19 00:10:00 +01:00
< / div >
< / div >
2024-02-16 21:59:07 +01:00
< a id = "a2fc7d3a6f907718ea430e138681ba328" name = "a2fc7d3a6f907718ea430e138681ba328" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a2fc7d3a6f907718ea430e138681ba328" > ◆   < / a > < / span > AI_updateWeights()< / h2 >
2022-11-19 00:10:00 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void CrissCross::AI_updateWeights < / td >
< td > (< / td >
2024-02-16 21:59:07 +01:00
< td class = "paramname" > < span class = "paramname" > < / span > < / td > < td > )< / td >
2022-11-19 00:10:00 +01:00
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2024-02-16 21:59:07 +01:00
< span class = "mlabels" > < span class = "mlabel" > private< / span > < span class = "mlabel" > noexcept< / span > < / span > < / td >
2022-11-19 00:10:00 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Updates the weights of the tiles. < / p >
2024-02-16 21:59:07 +01:00
< dl class = "section see" > < dt > See also< / dt > < dd > < a class = "el" href = "#a9546863583b69a7246a216794b88d062" title = "Main function for the AI to play its turn." > AI_playTurn()< / a > ; < / dd > < / dl >
2022-11-19 00:10:00 +01:00
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
2023-10-22 17:46:43 +02:00
< li > logdoctor/games/crisscross/< b > game.h< / b > < / li >
< li > logdoctor/games/crisscross/< b > game.cpp< / b > < / li >
2022-11-19 00:10:00 +01:00
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2024-02-16 21:59:07 +01:00
Generated by  < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.10.0
2022-11-19 00:10:00 +01:00
< / small > < / address >
< / body >
< / html >