Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #124419 > unrolled thread
| Started by | Bonita Montero <Bonita.Montero@gmail.com> |
|---|---|
| First post | 2026-07-29 14:10 +0200 |
| Last post | 2026-08-04 13:49 +0800 |
| Articles | 20 on this page of 79 — 21 participants |
Back to article view | Back to comp.lang.c++
Tic Tac Toe Quest Bonita Montero <Bonita.Montero@gmail.com> - 2026-07-29 14:10 +0200
Re: Tic Tac Toe Quest Chris Ahlstrom <OFeem1987@teleworm.us> - 2026-07-29 08:14 -0400
Re: Tic Tac Toe Quest Bonita Montero <Bonita.Montero@gmail.com> - 2026-07-29 14:28 +0200
Re: Tic Tac Toe Quest Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-07-29 20:30 +0800
Re: Tic Tac Toe Quest Bonita Montero <Bonita.Montero@gmail.com> - 2026-07-29 14:38 +0200
Turbo Vision (was: Re: Tic Tac Toe Quest) Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-07-29 20:46 +0800
Re: Turbo Vision Bonita Montero <Bonita.Montero@gmail.com> - 2026-07-29 14:57 +0200
Re: Turbo Vision Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-07-29 21:14 +0800
Re: Turbo Vision ... MS-DOS 5 Shell? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-07-31 22:42 +0800
Re: Turbo Vision ... MS-DOS 5 Shell? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-08-05 04:13 +0800
Re: Turbo Vision ... MS-DOS 5 Shell? usenet@dolik.dev (Andriy D) - 2026-08-05 11:38 +0000
Re: Turbo Vision ... MS-DOS 5 Shell? JJ <jj4public@gmail.com> - 2026-08-05 20:46 +0700
Re: Tic Tac Toe Quest R Kym Horsell <kym@sdf.org> - 2026-07-31 06:19 +0000
Re: Tic Tac Toe Quest Bonita Montero <Bonita.Montero@gmail.com> - 2026-07-31 14:20 +0200
Re: Tic Tac Toe Quest R Kym Horsell <kym@sdf.org> - 2026-07-31 22:05 +0000
Re: Tic Tac Toe Quest steve g <Sgonedes1977@gmail.com> - 2026-08-08 01:35 -0400
Re: Tic Tac Toe Quest James Kuyper <jameskuyper@alumni.caltech.edu> - 2026-07-31 11:22 -0400
Re: Tic Tac Toe Quest "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-07-31 20:00 -0700
Re: Tic Tac Toe Quest R Kym Horsell <kym@sdf.org> - 2026-08-02 01:17 +0000
Re: Tic Tac Toe Quest Mike Terry <news.dead.person.stones@darjeeling.plus.com> - 2026-08-02 03:41 +0100
Re: Tic Tac Toe Quest Mike Terry <news.dead.person.stones@darjeeling.plus.com> - 2026-08-02 04:19 +0100
Re: Tic Tac Toe Quest R Kym Horsell <kym@sdf.org> - 2026-08-02 21:09 +0000
Re: Tic Tac Toe Quest Mike Terry <news.dead.person.stones@darjeeling.plus.com> - 2026-08-03 01:54 +0100
Re: Tic Tac Toe Quest James Kuyper <jameskuyper@alumni.caltech.edu> - 2026-08-03 17:25 -0400
Re: Tic Tac Toe Quest R Kym Horsell <kym@sdf.org> - 2026-08-03 22:00 +0000
Re: Tic Tac Toe Quest James Kuyper <jameskuyper@alumni.caltech.edu> - 2026-08-04 01:05 -0400
Re: Tic Tac Toe Quest ... End game? TikTok? :) "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-08-04 13:54 +0800
Re: Tic Tac Toe Quest "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-08-04 11:50 -0700
Re: Tic Tac Toe Quest James Kuyper <jameskuyper@alumni.caltech.edu> - 2026-08-02 12:30 -0400
Re: Tic Tac Toe Quest bart <bc@freeuk.com> - 2026-08-02 11:25 +0100
Re: Tic Tac Toe Quest Chris Ahlstrom <OFeem1987@teleworm.us> - 2026-08-01 07:40 -0400
Re: Tic Tac Toe Quest DFS <nospam@dfs.com> - 2026-07-29 15:04 -0400
Re: Tic Tac Toe Quest Bonita Montero <Bonita.Montero@gmail.com> - 2026-07-29 21:28 +0200
Re: Tic Tac Toe Quest DFS <nospam@dfs.com> - 2026-07-29 16:25 -0400
Re: Tic Tac Toe Quest Bonita Montero <Bonita.Montero@gmail.com> - 2026-07-30 17:09 +0200
Re: Tic Tac Toe Quest Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-07-30 17:53 +0200
Re: Tic Tac Toe Quest Bonita Montero <Bonita.Montero@gmail.com> - 2026-07-30 21:59 +0200
Re: Tic Tac Toe Quest Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-07-30 23:00 +0200
Re: Tic Tac Toe Quest Paul <nospam@needed.invalid> - 2026-07-30 18:56 -0400
Re: Tic Tac Toe Quest Bonita Montero <Bonita.Montero@gmail.com> - 2026-07-31 20:33 +0200
Re: Tic Tac Toe Quest "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2026-07-31 19:53 -0700
Re: Tic Tac Toe Quest Michael S <already5chosen@yahoo.com> - 2026-07-31 17:53 +0300
Re: Tic Tac Toe Quest Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-07-31 18:17 +0200
Re: Tic Tac Toe Quest Michael S <already5chosen@yahoo.com> - 2026-08-01 21:44 +0300
Re: Tic Tac Toe Quest Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2026-08-01 21:43 +0200
Re: Tic Tac Toe Quest Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-07-30 14:58 -0700
Re: Tic Tac Toe Quest "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-07-31 00:45 +0800
Re: Tic Tac Toe Quest Bonita Montero <Bonita.Montero@gmail.com> - 2026-07-30 22:00 +0200
Re: Tic Tac Toe Quest "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-07-31 13:29 +0800
Re: Tic Tac Toe Quest Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-07-31 14:54 +0800
Re: Tic Tac Toe Quest Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2026-07-31 03:00 -0700
Re: Tic Tac Toe Quest Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-07-31 20:57 +0800
Re: Tic Tac Toe Quest gazelle@shell.xmission.com (Kenny McCormack) - 2026-07-31 14:08 +0000
Re: Tic Tac Toe Quest ... Discrete mathematics? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-07-31 13:30 +0800
Re: Tic Tac Toe Quest Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-07-31 07:31 +0000
Re: Tic Tac Toe Quest Bonita Montero <Bonita.Montero@gmail.com> - 2026-07-31 14:21 +0200
Re: Tic Tac Toe Quest Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-08-02 03:57 +0000
Re: Tic Tac Toe Quest ... WarGames (1983) Movie CLIP - Tic Tac Toe With Joshua "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-07-31 22:24 +0800
Re: Tic Tac Toe Quest "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-07-31 22:18 +0800
Re: Tic Tac Toe Quest Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-07-31 04:17 +0800
Re: Tic Tac Toe Quest ... game programming in C? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-07-31 13:27 +0800
Re: Tic Tac Toe Quest ... game programming in C? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-07-31 14:56 +0800
Re: Tic Tac Toe Quest ... game programming in C? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-07-31 19:43 +0800
VAXen (was: Re: Tic Tac Toe Quest ... game programming in C?) Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-07-31 20:56 +0800
Re: VAXen The Natural Philosopher <tnp@invalid.invalid> - 2026-07-31 14:32 +0100
I Bought a $200K VAX on eBay & – Now It Runs My Smart Lights! - YouTube "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-07-31 22:20 +0800
Re: I Bought a $200K VAX on eBay & – Now It Runs My Smart Lights! - YouTube Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-07-31 22:53 +0800
Re: I Bought a $200K VAX on eBay & – Now It Runs My Smart Lights! - YouTube The Natural Philosopher <tnp@invalid.invalid> - 2026-07-31 16:00 +0100
Re: Tic Tac Toe Quest ... VAXen? VMS? Pascal? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-07-31 22:14 +0800
Re: Tic Tac Toe Quest ... VAXen? VMS? Pascal? Spreadsheets! Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-08-05 04:17 +0800
Re: Tic Tac Toe Quest ... VAXen? VMS? Pascal? Spreadsheets! "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-08-05 07:43 -0700
Re: Tic Tac Toe Quest... vibe-coding? Wargames (1983) the movie? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-07-31 22:43 +0800
Tic-tac-toe (過三關? 井字棋?) - Wikipedia "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-08-02 17:19 +0800
Re: Tic-tac-toe (???? ????) - Wikipedia Your Name <YourName@YourISP.com> - 2026-08-03 10:01 +1200
Wing Commander III: Heart of the Tiger (was: Re: Tic-tac-toe (???? ????) - Wikipedia) Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-08-03 17:15 +0800
Re: Wing Commander III ... and Mark Hamill? Star Wars? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-08-04 13:09 +0800
Re: Tic-tac-toe ... balance to the Force? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-08-04 13:06 +0800
Death Star bombing run mechanical toy? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-08-04 13:14 +0800
Re: Death Star bombing run mechanical toy? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2026-08-04 13:49 +0800
Page 3 of 4 — ← Prev page 1 2 [3] 4 Next page →
| From | "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> |
|---|---|
| Date | 2026-07-31 19:53 -0700 |
| Message-ID | <114jn44$38ql9$1@dont-email.me> |
| In reply to | #124515 |
On 7/31/2026 11:33 AM, Bonita Montero wrote: > Am 31.07.2026 um 00:56 schrieb Paul: > >> CoPilot gives me this. >> >> "The errors all come from one root cause: C++23 does not support this >> auto &self inside a lambda. >> That syntax was proposed for “lambda recursion” but never made it >> into the standard. >> So g++ rejects it, and then all later errors are just fallout from >> the first one. > > I guess Copilot is wrong. Grok, Claude and GPT say it's part of the > standard. Maybe the initial compiler was too old. And it's not plausible > why this shouldn't have gone into the standard since it's simple and > useful. Code and research for yourself. Sigh. The AI can help make a moron sound half way smart?
[toc] | [prev] | [next] | [standalone]
| From | Michael S <already5chosen@yahoo.com> |
|---|---|
| Date | 2026-07-31 17:53 +0300 |
| Message-ID | <20260731175313.00004522@yahoo.com> |
| In reply to | #124478 |
On Thu, 30 Jul 2026 23:00:30 +0200 Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: > On 2026-07-30 21:59, Bonita Montero wrote: > > Am 30.07.2026 um 17:53 schrieb Janis Papanagnou: > > > >> Since your code doesn't compile without errors with my g++ > >> -std=c++23, and especially since you said in your OP: "Just show > >> the results.", mind to post the result that your code is supposed > >> to produce? Thanks. > > > > It compiles with current MSVC, g++-14 and clang++-20. > > Maybe. (I'm no MS user, so that's quite meaningless for me.)[*] > gcc-14 and clang-20 are certainly available on many (most ?) Linux distributions. May be, getting them on some distros is less easy than it is on Windows/msys2, but it is not a rocket science.
[toc] | [prev] | [next] | [standalone]
| From | Janis Papanagnou <janis_papanagnou+ng@hotmail.com> |
|---|---|
| Date | 2026-07-31 18:17 +0200 |
| Message-ID | <114ihrn$1blvl$3@dont-email.me> |
| In reply to | #124505 |
On 2026-07-31 16:53, Michael S wrote: > On Thu, 30 Jul 2026 23:00:30 +0200 > Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: > >> On 2026-07-30 21:59, Bonita Montero wrote: >>> Am 30.07.2026 um 17:53 schrieb Janis Papanagnou: >>> >>>> Since your code doesn't compile without errors with my g++ >>>> -std=c++23, and especially since you said in your OP: "Just show >>>> the results.", mind to post the result that your code is supposed >>>> to produce? Thanks. >>> >>> It compiles with current MSVC, g++-14 and clang++-20. >> >> Maybe. (I'm no MS user, so that's quite meaningless for me.)[*] > > gcc-14 and clang-20 are certainly available on many (most ?) Linux > distributions. May be, getting them on some distros is less easy than > it is on Windows/msys2, but it is not a rocket science. Availability of the GNU CC on Linux was not the problem with BM's code. See Paul's reply for details. Janis
[toc] | [prev] | [next] | [standalone]
| From | Michael S <already5chosen@yahoo.com> |
|---|---|
| Date | 2026-08-01 21:44 +0300 |
| Message-ID | <20260801214405.00002284@yahoo.com> |
| In reply to | #124513 |
On Fri, 31 Jul 2026 18:17:58 +0200 Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: > On 2026-07-31 16:53, Michael S wrote: > > On Thu, 30 Jul 2026 23:00:30 +0200 > > Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: > > > >> On 2026-07-30 21:59, Bonita Montero wrote: > >>> Am 30.07.2026 um 17:53 schrieb Janis Papanagnou: > >>> > >>>> Since your code doesn't compile without errors with my g++ > >>>> -std=c++23, and especially since you said in your OP: "Just show > >>>> the results.", mind to post the result that your code is supposed > >>>> to produce? Thanks. > >>> > >>> It compiles with current MSVC, g++-14 and clang++-20. > >> > >> Maybe. (I'm no MS user, so that's quite meaningless for me.)[*] > > > > gcc-14 and clang-20 are certainly available on many (most ?) Linux > > distributions. May be, getting them on some distros is less easy > > than it is on Windows/msys2, but it is not a rocket science. > > Availability of the GNU CC on Linux was not the problem with BM's > code. See Paul's reply for details. > > Janis > It was, actually. Not on any Linux, but on your specific Linux instalation. Bonita said that her code compiles with gcc-14. I see no reason to not believe her. BTW, it was not Paul's reply, but reply of co-pilot. Which I don't trust.
[toc] | [prev] | [next] | [standalone]
| From | Janis Papanagnou <janis_papanagnou+ng@hotmail.com> |
|---|---|
| Date | 2026-08-01 21:43 +0200 |
| Message-ID | <114li8e$1bcir$1@dont-email.me> |
| In reply to | #124528 |
On 2026-08-01 20:44, Michael S wrote: > [...] > Bonita said that her code compiles with gcc-14. [..] What she originally said was: "I show mine in C++23". And I did: g++ -std=c++23 -o ttt_bm ttt_bm.cc and got errors. > BTW, it was not Paul's reply, but reply of co-pilot. [...] The point is that BM's code didn't compile with -std=c++23 and Paul's code - that fixes the issue - compiled well. All that wouldn't have been necessary in the first place if Bonita would have just shown her results - as she requested also from the audience! - but no, not even after I asked for that, twice. Paul's response (with or without AI) was helpful - in *both* respects, code and result! - Bonita's (and yours) were not. (You can continue squirming around these obvious facts, but don't expect that I'll respond to more useless rubbish like that.) Janis BTW, providing some code is hardly evidence for the original question. A formal mathematical deduction would be in order to get any results to be verified. - Otherwise you can only compare all programs' results and make guesses (or ask an AI - which might be okay given that this is such a trivial "quest" that had certainly be "solved" many times in every language, so easily to be identified by the AIs - I've just tested that and got code, code that compiles correctly and that produces the equivalent results, modulo the symmetries, of course).
[toc] | [prev] | [next] | [standalone]
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
|---|---|
| Date | 2026-07-30 14:58 -0700 |
| Message-ID | <114gheg$25jib$4@kst.eternal-september.org> |
| In reply to | #124470 |
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
> On 2026-07-30 17:09, Bonita Montero wrote:
>> As no one here shows a solution I show mine in C++23:
>
>> [snip code]
>
> Since your code doesn't compile without errors with my g++ -std=c++23,
> and especially since you said in your OP: "Just show the results.",
> mind to post the result that your code is supposed to produce? Thanks.
Since the code is in C++, please restrict followups to the appropriate
newsgroup. Thanks.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
[toc] | [prev] | [next] | [standalone]
| From | "Mr. Man-wai Chang" <toylet.toylet@gmail.com> |
|---|---|
| Date | 2026-07-31 00:45 +0800 |
| Message-ID | <114fv3s$1v2v7$2@toylet.eternal-september.org> |
| In reply to | #124419 |
On 7/29/2026 8:10 PM, Bonita Montero wrote:
> Write a program that calculates the number of possible ways to
> win a Tic Tac Toe round and the number of possible undecided
> rounds. Don't show the code here immediately but after some
> days. Just show the results.
> C and C++ are allowed since the solution will be very similar.
Possibly a very famous assignment for students
doing computer science. But I have never ever
written a game.
--
@~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
/ v \ May the Force and farces be with you! Live long and prosper!!
/( _ )\ https://sites.google.com/site/changmw/
^ ^ https://github.com/changmw/changmw
The game is afoot... Meow...
[toc] | [prev] | [next] | [standalone]
| From | Bonita Montero <Bonita.Montero@gmail.com> |
|---|---|
| Date | 2026-07-30 22:00 +0200 |
| Message-ID | <114gagq$23hhe$2@raubtier-asyl.eternal-september.org> |
| In reply to | #124474 |
Am 30.07.2026 um 18:45 schrieb Mr. Man-wai Chang: > On 7/29/2026 8:10 PM, Bonita Montero wrote: >> Write a program that calculates the number of possible ways to >> win a Tic Tac Toe round and the number of possible undecided >> rounds. Don't show the code here immediately but after some >> days. Just show the results. >> C and C++ are allowed since the solution will be very similar. > > Possibly a very famous assignment for students > doing computer science. But I have never ever > written a game. It's not about writing a game but calculating the likhehood of different outcomes.
[toc] | [prev] | [next] | [standalone]
| From | "Mr. Man-wai Chang" <toylet.toylet@gmail.com> |
|---|---|
| Date | 2026-07-31 13:29 +0800 |
| Message-ID | <114hbsf$2docc$3@toylet.eternal-september.org> |
| In reply to | #124476 |
On 7/31/2026 4:00 AM, Bonita Montero wrote:
> Am 30.07.2026 um 18:45 schrieb Mr. Man-wai Chang:
>> On 7/29/2026 8:10 PM, Bonita Montero wrote:
>>> Write a program that calculates the number of possible ways to
>>> win a Tic Tac Toe round and the number of possible undecided
>>> rounds. Don't show the code here immediately but after some
>>> days. Just show the results.
>>
>> Possibly a very famous assignment for students
>> doing computer science. But I have never ever
>> written a game.
>
> It's not about writing a game but calculating the likhehood
> of different outcomes.
But do you have to use beautiful maths to
solve maths problems? Could we just use
fingers and counting, like programming? :)
--
@~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
/ v \ May the Force and farces be with you! Live long and prosper!!
/( _ )\ https://sites.google.com/site/changmw/
^ ^ https://github.com/changmw/changmw
The game is afoot... Meow...
[toc] | [prev] | [next] | [standalone]
| From | Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> |
|---|---|
| Date | 2026-07-31 14:54 +0800 |
| Message-ID | <REXaS.56468$aXr.12098@fx18.ams4> |
| In reply to | #124483 |
On 31/07/2026 1:29 PM, Mr. Man-wai Chang wrote: > On 7/31/2026 4:00 AM, Bonita Montero wrote: >> Am 30.07.2026 um 18:45 schrieb Mr. Man-wai Chang: >>> On 7/29/2026 8:10 PM, Bonita Montero wrote: >>>> Write a program that calculates the number of possible ways to >>>> win a Tic Tac Toe round and the number of possible undecided >>>> rounds. Don't show the code here immediately but after some >>>> days. Just show the results. >>> >>> Possibly a very famous assignment for students >>> doing computer science. But I have never ever >>> written a game. >> >> It's not about writing a game but calculating the likhehood >> of different outcomes. > > > But do you have to use beautiful maths to > solve maths problems? Could we just use > fingers and counting, like programming? :) > There is a game called "lights out." I forgot the exact rules, but it has lights on a grid, and toggling one toggles four others in a cross pattern[1]. Some squares -- it depends on the size -- you can solve exactly, and some have no solutions. The "trick" here is to create a program that does boolean matrix algebra, and then it can tell you if the current board/position has a solution, or has no solution. The object of the game is to start with all lights on, and then turn them all off. Do you like to create programs that solve such games? [1] Dan Cross need not reply. Nor Keith, he can't code his own boolean matrices anyway. -- Johann | email: invalid -> com | http://www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | via Easynews.com
[toc] | [prev] | [next] | [standalone]
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
|---|---|
| Date | 2026-07-31 03:00 -0700 |
| Message-ID | <114hrne$2jldf$1@kst.eternal-september.org> |
| In reply to | #124486 |
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> writes:
[...]
> [1] Dan Cross need not reply. Nor Keith, he can't code his own boolean
> matrices anyway.
Your apparent obsession with me is annoying. I intend this to be
my last communication with you. Please consider not mentioning
me ever again. (If you could refrain from making off-topic posts
to these newsgroups, that would be great, but I don't expect that
kind of self-control.)
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
[toc] | [prev] | [next] | [standalone]
| From | Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> |
|---|---|
| Date | 2026-07-31 20:57 +0800 |
| Message-ID | <WY0bS.4293$ZjVb.505@fx12.ams4> |
| In reply to | #124489 |
On 31/07/2026 6:00 PM, Keith Thompson wrote: > Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> writes: > [...] >> [1] Dan Cross need not reply. Nor Keith, he can't code his own boolean >> matrices anyway. > > Your apparent obsession with me is annoying. I intend this to be > my last communication with you. Please consider not mentioning > me ever again. (If you could refrain from making off-topic posts > to these newsgroups, that would be great, but I don't expect that > kind of self-control.) > You broke your own rule, and replied to me. Do you have amnesia? -- Johann | email: invalid -> com | http://www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | via Easynews.com
[toc] | [prev] | [next] | [standalone]
| From | gazelle@shell.xmission.com (Kenny McCormack) |
|---|---|
| Date | 2026-07-31 14:08 +0000 |
| Message-ID | <114ia9o$cako$1@news.xmission.com> |
| In reply to | #124489 |
In article <114hrne$2jldf$1@kst.eternal-september.org>, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote: >Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> writes: >[...] >> [1] Dan Cross need not reply. Nor Keith, he can't code his own boolean >> matrices anyway. > >Your apparent obsession with me is annoying. I intend this to be >my last communication with you. Please consider not mentioning >me ever again. (If you could refrain from making off-topic posts >to these newsgroups, that would be great, but I don't expect that >kind of self-control.) The Lord & Master has spoken. -- The last time a Republican cared about you, you were a fetus.
[toc] | [prev] | [next] | [standalone]
| From | "Mr. Man-wai Chang" <toylet.toylet@gmail.com> |
|---|---|
| Date | 2026-07-31 13:30 +0800 |
| Subject | Re: Tic Tac Toe Quest ... Discrete mathematics? |
| Message-ID | <114hbuh$2docc$4@toylet.eternal-september.org> |
| In reply to | #124476 |
On 7/31/2026 4:00 AM, Bonita Montero wrote:
>
> It's not about writing a game but calculating the likhehood
> of different outcomes.
discrete mathematics - Google 搜尋
<https://www.google.com/search?q=discrete+mathematics>
--
@~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
/ v \ May the Force and farces be with you! Live long and prosper!!
/( _ )\ https://sites.google.com/site/changmw/
^ ^ https://github.com/changmw/changmw
The game is afoot... Meow...
[toc] | [prev] | [next] | [standalone]
| From | Lawrence D’Oliveiro <ldo@nz.invalid> |
|---|---|
| Date | 2026-07-31 07:31 +0000 |
| Message-ID | <114hj0v$2g9un$4@dont-email.me> |
| In reply to | #124476 |
On Thu, 30 Jul 2026 22:00:26 +0200, Bonita Montero wrote: > It's not about writing a game but calculating the likhehood of > different outcomes. A player who doesn’t make mistakes is going to choose a losing move, where there is a non-losing alternative available, with a likelihood of zero.
[toc] | [prev] | [next] | [standalone]
| From | Bonita Montero <Bonita.Montero@gmail.com> |
|---|---|
| Date | 2026-07-31 14:21 +0200 |
| Message-ID | <114i40p$2mvma$2@raubtier-asyl.eternal-september.org> |
| In reply to | #124488 |
Am 31.07.2026 um 09:31 schrieb Lawrence D’Oliveiro: > A player who doesn’t make mistakes is going to choose a losing move, > where there is a non-losing alternative available, with a likelihood > of zero. That's not what I asked for.
[toc] | [prev] | [next] | [standalone]
| From | Lawrence D’Oliveiro <ldo@nz.invalid> |
|---|---|
| Date | 2026-08-02 03:57 +0000 |
| Message-ID | <114mf81$5rpo$3@dont-email.me> |
| In reply to | #124492 |
On Fri, 31 Jul 2026 14:21:46 +0200, Bonita Montero wrote: > Am 31.07.2026 um 09:31 schrieb Lawrence D’Oliveiro: > >> A player who doesn’t make mistakes is going to choose a losing >> move, where there is a non-losing alternative available, with a >> likelihood of zero. > > That's not what I asked for. That’s how tic-tac-toe is played, in case you didn’t know.
[toc] | [prev] | [next] | [standalone]
| From | "Mr. Man-wai Chang" <toylet.toylet@gmail.com> |
|---|---|
| Date | 2026-07-31 22:24 +0800 |
| Subject | Re: Tic Tac Toe Quest ... WarGames (1983) Movie CLIP - Tic Tac Toe With Joshua |
| Message-ID | <114ib7a$2petu$4@toylet.eternal-september.org> |
| In reply to | #124488 |
On 7/31/2026 3:31 PM, Lawrence D’Oliveiro wrote:
>
> A player who doesn’t make mistakes is going to choose a losing move,
> where there is a non-losing alternative available, with a likelihood
> of zero.
Prove your claim by stupid programming!!! :)
You sure how to play Tic-Tac-Toe?
WarGames (10/11) Movie CLIP -
Tic Tac Toe With Joshua (1983) HD - YouTube
<https://www.youtube.com/watch?v=F7qOV8xonfY>
--
@~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
/ v \ May the Force and farces be with you! Live long and prosper!!
/( _ )\ https://sites.google.com/site/changmw/
^ ^ https://github.com/changmw/changmw
The game is afoot... Meow...
[toc] | [prev] | [next] | [standalone]
| From | "Mr. Man-wai Chang" <toylet.toylet@gmail.com> |
|---|---|
| Date | 2026-07-31 22:18 +0800 |
| Message-ID | <114iar0$2petu$2@toylet.eternal-september.org> |
| In reply to | #124476 |
On 7/29/2026 8:10 PM, Bonita Montero wrote:
>
> Write a program that calculates the number of possible ways to
> win a Tic Tac Toe round and the number of possible undecided
> rounds. Don't show the code here immediately but after some
> days. Just show the results.
> C and C++ are allowed since the solution will be very similar.
On 7/31/2026 4:00 AM, Bonita Montero wrote:
>
> It's not about writing a game but calculating the likhehood
> of different outcomes.
Spoiler alert .....
Okay, first one needs to define victory and draw.
Then, you can just iterate all possible endgames.
No actual calculations needed?
--
@~@ Simplicity is Beauty! Remain silent! Drink, Blink, Stretch!
/ v \ May the Force and farces be with you! Live long and prosper!!
/( _ )\ https://sites.google.com/site/changmw/
^ ^ https://github.com/changmw/changmw
The game is afoot... Meow...
[toc] | [prev] | [next] | [standalone]
| From | Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> |
|---|---|
| Date | 2026-07-31 04:17 +0800 |
| Message-ID | <7jOaS.64573$9jNc.19264@fx16.ams4> |
| In reply to | #124474 |
On 31/07/2026 12:45 AM, Mr. Man-wai Chang wrote: > On 7/29/2026 8:10 PM, Bonita Montero wrote: >> Write a program that calculates the number of possible ways to >> win a Tic Tac Toe round and the number of possible undecided >> rounds. Don't show the code here immediately but after some >> days. Just show the results. >> C and C++ are allowed since the solution will be very similar. > > Possibly a very famous assignment for students > doing computer science. But I have never ever > written a game. > I recommend the exercise. It's quite different from the "normal" type of programming we do in every day programming. At least, those of us who don't work at gaming companies. In comp.lang.c, I recommend starting with /SDL Game Development/ by Shaun Mitchell. I prefer that book over the lazy fu tutorial, or what- ever it's called. It should be trivial to port the code to SDL3. That said, my professional game development "career" if we can use that term, was limited to C# in then-Unity. Since then, Unity has changed license terms, so I can't recommend it anymore. Maybe I'll make a commercial game in SDL one of these years. There's no C# group that I know of, so I'll add comp.theroy instead. -- Johann | email: invalid -> com | http://www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | via Easynews.com
[toc] | [prev] | [next] | [standalone]
Page 3 of 4 — ← Prev page 1 2 [3] 4 Next page →
Back to top | Article view | comp.lang.c++
csiph-web