TheAlgorithms-C/db/de2/naval__battle_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg

199 lines
10 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 6.0.2 (20221011.1828)
-->
<!-- Title: main Pages: 1 -->
<svg width="331pt" height="326pt"
viewBox="0.00 0.00 331.00 326.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 322)">
<title>main</title>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Main function.">
<polygon fill="#999999" stroke="#666666" points="38,-168 0,-168 0,-149 38,-149 38,-168"/>
<text text-anchor="middle" x="19" y="-156" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../db/de2/naval__battle_8c.html#ab6e31f8df36de67ff967859069ccfc56" target="_top" xlink:title="Function calculateScore Responsible for calculating the score obtained during the game.">
<polygon fill="white" stroke="#666666" points="165,-318 84,-318 84,-299 165,-299 165,-318"/>
<text text-anchor="middle" x="124.5" y="-306" font-family="Helvetica,sans-Serif" font-size="10.00">calculateScore</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="#63b8ff" d="M21.27,-168.29C24.92,-192.46 37.58,-255.5 74,-290.5 75.11,-291.57 76.29,-292.58 77.53,-293.52"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="75.98,-296.68 86.33,-298.96 79.66,-290.72 75.98,-296.68"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../db/de2/naval__battle_8c.html#a59224afd73372b4f52415203e315f6e1" target="_top" xlink:title="Function canShoot Responsible to verify that it is a valid position to shoot.">
<polygon fill="white" stroke="#666666" points="153.5,-281 95.5,-281 95.5,-262 153.5,-262 153.5,-281"/>
<text text-anchor="middle" x="124.5" y="-269" font-family="Helvetica,sans-Serif" font-size="10.00">canShoot</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="#63b8ff" d="M22.92,-168.05C29.2,-187 45.74,-229.63 74,-253.5 77.55,-256.5 81.65,-259.02 85.93,-261.13"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="84.89,-264.49 95.47,-265.13 87.6,-258.03 84.89,-264.49"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../db/de2/naval__battle_8c.html#a3f7d3dc5931fba6164e73057859094d9" target="_top" xlink:title="Function positionBoat Responsible for placing the boats on the board, according to the size.">
<polygon fill="white" stroke="#666666" points="160,-244 89,-244 89,-225 160,-225 160,-244"/>
<text text-anchor="middle" x="124.5" y="-232" font-family="Helvetica,sans-Serif" font-size="10.00">positionBoat</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="#63b8ff" d="M28.4,-168.28C38.41,-179.51 56.07,-197.99 74,-210.5 79.24,-214.16 85.13,-217.54 90.96,-220.55"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="89.46,-223.71 99.99,-224.94 92.53,-217.42 89.46,-223.71"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../db/de2/naval__battle_8c.html#a7c5042bd35c4186b06ae28f06635b40e" target="_top" xlink:title="for Standard Input Output">
<polygon fill="white" stroke="#666666" points="323,-206 211,-206 211,-187 323,-187 323,-206"/>
<text text-anchor="middle" x="267" y="-194" font-family="Helvetica,sans-Serif" font-size="10.00">validEntryLineColumn</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge13" class="edge">
<title>Node1&#45;&gt;Node6</title>
<path fill="none" stroke="#63b8ff" d="M38.09,-161.29C71.93,-166.52 146.34,-178.02 200.97,-186.45"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="200.5,-189.92 210.92,-187.99 201.57,-183.01 200.5,-189.92"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../db/de2/naval__battle_8c.html#a521043b369238e618dcc9364b40448ef" target="_top" xlink:title="Function printMessage Responsible for printing the auxiliary message.">
<polygon fill="white" stroke="#666666" points="304.5,-131 229.5,-131 229.5,-112 304.5,-112 304.5,-131"/>
<text text-anchor="middle" x="267" y="-119" font-family="Helvetica,sans-Serif" font-size="10.00">printMessage</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node1&#45;&gt;Node7</title>
<path fill="none" stroke="#63b8ff" d="M38.2,-156.71C67.22,-153.75 125.74,-147.38 175,-139.5 189.46,-137.19 205.13,-134.25 219.32,-131.42"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="220.25,-134.8 229.36,-129.38 218.86,-127.94 220.25,-134.8"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../db/de2/naval__battle_8c.html#a2d65de2c86c7015d7ca400dfca0f25dc" target="_top" xlink:title="Function printMessageScore Responsible for printing the score messages.">
<polygon fill="white" stroke="#666666" points="175,-130 74,-130 74,-111 175,-111 175,-130"/>
<text text-anchor="middle" x="124.5" y="-118" font-family="Helvetica,sans-Serif" font-size="10.00">printMessageScore</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node8 -->
<g id="edge7" class="edge">
<title>Node1&#45;&gt;Node8</title>
<path fill="none" stroke="#63b8ff" d="M38.03,-151.88C51.78,-146.83 71.15,-139.72 87.98,-133.54"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="89.35,-136.77 97.53,-130.03 86.94,-130.19 89.35,-136.77"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a xlink:href="../../db/de2/naval__battle_8c.html#a5c84d83e31ca6a320b6ea8081402686a" target="_top" xlink:title="Function printPositioning Responsible for printing messages for positioning boats on the board; of pl...">
<polygon fill="white" stroke="#666666" points="166,-93 83,-93 83,-74 166,-74 166,-93"/>
<text text-anchor="middle" x="124.5" y="-81" font-family="Helvetica,sans-Serif" font-size="10.00">printPositioning</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node9 -->
<g id="edge8" class="edge">
<title>Node1&#45;&gt;Node9</title>
<path fill="none" stroke="#63b8ff" d="M27.04,-148.94C36.5,-136.68 54.41,-115.48 74,-102.5 76.89,-100.59 80,-98.83 83.2,-97.21"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="84.7,-100.37 92.37,-93.06 81.81,-94 84.7,-100.37"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a xlink:href="../../db/de2/naval__battle_8c.html#ad527fa96e729742a231c4535e112526a" target="_top" xlink:title="Function printsTray Responsible for printing the visual board for the user.">
<polygon fill="white" stroke="#666666" points="154.5,-56 94.5,-56 94.5,-37 154.5,-37 154.5,-56"/>
<text text-anchor="middle" x="124.5" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">printsTray</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node10 -->
<g id="edge10" class="edge">
<title>Node1&#45;&gt;Node10</title>
<path fill="none" stroke="#63b8ff" d="M23.05,-148.76C29.45,-129.86 46.05,-88 74,-64.5 77.31,-61.72 81.08,-59.35 85.03,-57.34"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="86.67,-60.45 94.45,-53.26 83.89,-54.02 86.67,-60.45"/>
</g>
<!-- Node12 -->
<g id="node12" class="node">
<title>Node12</title>
<g id="a_node12"><a xlink:href="../../db/de2/naval__battle_8c.html#a23e98ed36ca08c1b4bb86c86f48f6e70" target="_top" xlink:title="Function shoot Responsible for saying if he hit a boat.">
<polygon fill="white" stroke="#666666" points="145,-19 104,-19 104,0 145,0 145,-19"/>
<text text-anchor="middle" x="124.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">shoot</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node12 -->
<g id="edge12" class="edge">
<title>Node1&#45;&gt;Node12</title>
<path fill="none" stroke="#63b8ff" d="M21.29,-148.78C24.99,-124.79 37.77,-62.23 74,-27.5 79.54,-22.19 86.76,-18.43 93.97,-15.77"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="95.11,-19.08 103.63,-12.79 93.04,-12.39 95.11,-19.08"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../db/de2/naval__battle_8c.html#a4a5686c91f144d07eff1c6576303962d" target="_top" xlink:title="Function validatePosition Responsible for checking if the position can receive the boat.">
<polygon fill="white" stroke="#666666" points="310,-244 224,-244 224,-225 310,-225 310,-244"/>
<text text-anchor="middle" x="267" y="-232" font-family="Helvetica,sans-Serif" font-size="10.00">validatePosition</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node4&#45;&gt;Node5</title>
<path fill="none" stroke="#63b8ff" d="M160.23,-234.5C176.4,-234.5 195.99,-234.5 213.89,-234.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="213.91,-238 223.91,-234.5 213.91,-231 213.91,-238"/>
</g>
<!-- Node4&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node4&#45;&gt;Node6</title>
<path fill="none" stroke="#63b8ff" d="M160.23,-225.11C178.58,-220.14 201.32,-213.99 221.01,-208.67"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="221.95,-212.04 230.69,-206.05 220.13,-205.28 221.95,-212.04"/>
</g>
<!-- Node9&#45;&gt;Node7 -->
<g id="edge9" class="edge">
<title>Node9&#45;&gt;Node7</title>
<path fill="none" stroke="#63b8ff" d="M160.95,-93.09C179.09,-97.99 201.37,-104.02 220.73,-109.26"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="219.99,-112.68 230.56,-111.91 221.82,-105.92 219.99,-112.68"/>
</g>
<!-- Node11 -->
<g id="node11" class="node">
<title>Node11</title>
<g id="a_node11"><a xlink:href="../../db/de2/naval__battle_8c.html#a3889e1ee574e03ffdde8804180d57543" target="_top" xlink:title="Function printTable Responsible for printing the board.">
<polygon fill="white" stroke="#666666" points="296.5,-56 237.5,-56 237.5,-37 296.5,-37 296.5,-56"/>
<text text-anchor="middle" x="267" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">printTable</text>
</a>
</g>
</g>
<!-- Node10&#45;&gt;Node11 -->
<g id="edge11" class="edge">
<title>Node10&#45;&gt;Node11</title>
<path fill="none" stroke="#63b8ff" d="M154.61,-46.5C175.66,-46.5 204.32,-46.5 227.3,-46.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="227.41,-50 237.41,-46.5 227.41,-43 227.41,-50"/>
</g>
</g>
</svg>