From 1f2480c24a4687a360a77ae262c691c3e9274060 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Fri, 9 Feb 2024 13:51:15 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Jede=20funtion=20ist=20jetzt=20k?= =?UTF-8?q?lar=20von=20der=20n=C3=A4chsten=20abgespalten?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../out/c/duellist-spielesammlung-projekt.o | Bin 43917 -> 43917 bytes src/main/duellist-spielesammlung-projekt.c | 7 +------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/build/test/out/c/duellist-spielesammlung-projekt.o b/build/test/out/c/duellist-spielesammlung-projekt.o index cf0dfaf094e6a45d88332a962289a9f9e4f2ca36..fcc815ae84c0da44c7527a03b952a19df8692e5b 100644 GIT binary patch delta 2729 zcmZWqTWnNS6y0Zfi$#m=Oxxj39XeBJ2rVC-0+vT9X$h1fRDsme)=GPO=h7K^=fONE z51}L~#%P7{hzU~hM*|8N6G#jgHQ)~cMU5m?1T|{n2P8gzCF(xs>^o)RN87vhW9_x~ z+2?d($~7_N`k=9go#vq)-2uZ}rk9@mkc&=|cG5QXtTSR3u&ZndZqDymm`&b&0Kg+zt}!)R+ap;%=STXg z#;=nxqIYA;dzj*lXJa_lFUip>FrMC5guA_oq?Ix<(L@~B*JRw}X&1u2AsD8ZL<-mq zCI;Zjnci&LO0~z+V-{NfrAS`aU&$`<<^6u&Wir{|3rEwUnJz1y1@y0@(s1l}mn(*+fd=KVL^x}2#F9s4Vi_hj$iz4$Dmx`Q z029O6lvuWxW!i6Ur`|g=d1#=fHD=(Ry(oR(qpws_-Xuz8CrSrs;EzS)*)*_2JTNf( zsY5cEf*gQBMmP-YS?T-?nP*An4t#<{m_4nVPcvv@h|wA%55JU8GQKbYr_8M}cw zP=hLzVc~&WxG})mWY`xE1Ke8h143*ncmNh6uZI4#WZw%EAuR6i+>+mbhh?4lEV44dlys zcOc-iw#^>DEpBTU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7RHt)j4>2$~cV zO8~pZ!~k5`pf{bg60OnXsD;*IDx25$Rj@Dls=gZEB_iA4Gs8*IOotUs1G~theR}O# z>HXLPuu%@@NC^%aE5jQB>?}Xox0;>iH~XqHr%49Nt-bLWFb8X@#7QTM{u*leQOg^~ zD@N83Kus_fi5m%=;z?;-g<%V2$|oPel!jx+yIejr4Kyf=#LTpv!IZ}(aTXFAB{51w zWhbHokZ7h8V%f$e?KiiR?*pPKJJB4VK~2QK1w1NAKO?DB=301-Sjs^x2MAU;noa^c z%>DgUfy0tbK@Pwm!!&`tE}a)qdZv_ao5BCyF=tlUzBFDBJE^w(5YP7eGKcay5o0ef z2Wn7>=`1{Q3wH+CMj7_?V*poNVmG~y;%=@M;%y`_=-K=r?Dr;Oqto6VZ!l)3Be-}@ zd>0NGAj3L|Z+n&seiv@0Sh|pBi-6A&G@)Ww!mHZj1Zcf%o?uz6301;R)Bu@@}i{pjIX!q}9q=CCQa7sg)@RmHOoz36=Ss zF_NL8E*MKkQ{ss3sM{KYxyjy8Z1llVO-O zQ08>ePQoxJVvJZFs1B@2OuGq#$7S%Ld~lQa#A&ORn^Zb#nNZ2RRzZ47NVu{#6l>q$ z7r!**-mpL(B6`)0xSN+= MIN_AGE ? 1 : 0; } - int initializeRandomGenerator() { srand(time(NULL)); return 1; // Erfolgreich initialisiert } - - int decideGameType() { // Rückgabe einer zufälligen Zahl (1 für Schere-Stein-Papier, 2 für Münzwurf) return (rand() % 2) + 1; @@ -33,9 +30,6 @@ Player playRockPaperScissors() { return (rand() % 3) == 0 ? PLAYER_X : ((rand() % 3) == 1 ? PLAYER_O : EMPTY); } - - - GameResult initializeGame(TicTacToeGame* game) { // Initialisiere das Spielfeld for (int i = 0; i < 3; ++i) { @@ -53,6 +47,7 @@ GameResult initializeGame(TicTacToeGame* game) { // Rückgabe des Ergebnisses return SUCCESS; } + GameResult makeMove(TicTacToeGame* game, int row, int col) { if (row < 0 || row >= 3 || col < 0 || col >= 3 || game->board[row][col] != EMPTY) { return INVALID_MOVE;