Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Building a game board c++ stratego

99 views
Skip to first unread message

markgaf...@gmail.com

unread,
Nov 16, 2017, 8:37:58 PM11/16/17
to
I need help with setting up my board
So far I got my enums, but need help with my array set up

woodb...@gmail.com

unread,
Nov 16, 2017, 9:31:11 PM11/16/17
to
On Thursday, November 16, 2017 at 7:37:58 PM UTC-6, markgaf...@gmail.com wrote:
> I need help with setting up my board
> So far I got my enums, but need help with my array set up

Duckduckgo is your friend:

https://duckduckgo.com/?q=c%2B%2B+stratego&t=hf&ia=images


Brian
Ebenezer Enterprises
http://webEbenezer.net

Öö Tiib

unread,
Nov 16, 2017, 11:37:44 PM11/16/17
to
On Friday, 17 November 2017 03:37:58 UTC+2, markgaf...@gmail.com wrote:
> I need help with setting up my board
> So far I got my enums, but need help with my array set up

It is quite impossible for us to see what difficulties you
face with that array of that board.

If you have difficulty (lets say) to declare array of (lets say)
100 (lets say) Positions as board then you can do it like that:

std::array<Position,100> board;

However that answer is based on too lot of guessing and so it
might be not what you need. You need to put more effort into
showing what you have and what difficulty you have with it.

Jorgen Grahn

unread,
Nov 17, 2017, 1:26:50 AM11/17/17
to
Also we don't know what he's going to use this Stratego board for (AI
player? two-player? something entirely different?), and many (well, me
at least) are unfamiliar with the rules of Stratego.

(I see on Wikipedia it's 10x10 squares, but I didn't learn the rules
of movement.)

Two questions which may be useful:
- Is the Board object distinct from the game being played on that
Board? Does the Board or the Game, or neither, own the playing pieces?
- What are the properties of a Board object?

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .

leigh.v....@googlemail.com

unread,
Nov 17, 2017, 7:38:33 AM11/17/17
to
Sane people use Google for search or at a push Bing.

/Leigh

woodb...@gmail.com

unread,
Nov 17, 2017, 12:05:41 PM11/17/17
to
On Friday, November 17, 2017 at 6:38:33 AM UTC-6, leigh.v....@googlemail.com wrote:
> Sane people use Google for search or at a push Bing.
>

Duckduckgo keeps growing:

https://en.wikipedia.org/wiki/DuckDuckGo#History

It's one of the things I'm thankful for along with
family, friends, health, kosher work and food.


Brian
Ebenezer Enterprises - Enjoying programming again.
http://webEbenezer.net

Juha Nieminen

unread,
Nov 20, 2017, 1:44:02 AM11/20/17
to
markgaf...@gmail.com wrote:
> I need help with setting up my board
> So far I got my enums, but need help with my array set up

Well, good luck with that, then.

Jorgen Grahn

unread,
Nov 20, 2017, 2:37:46 PM11/20/17
to
Because we've got better things to do, like "discussing" religion?

I could imagine this becoming a more interesting thread than most,
if the poster is reasonably smart and interested.

Juha Nieminen

unread,
Nov 21, 2017, 1:45:03 AM11/21/17
to
Jorgen Grahn <grahn...@snipabacken.se> wrote:
> On Mon, 2017-11-20, Juha Nieminen wrote:
>> markgaf...@gmail.com wrote:
>>> I need help with setting up my board
>>> So far I got my enums, but need help with my array set up
>>
>> Well, good luck with that, then.
>
> Because we've got better things to do, like "discussing" religion?
>
> I could imagine this becoming a more interesting thread than most,
> if the poster is reasonably smart and interested.

Perhaps, if he posed an actual, more specific question.
0 new messages