Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A player has a hair color #68

Open
1 task
TheoPannetier opened this issue Feb 14, 2024 · 0 comments
Open
1 task

A player has a hair color #68

TheoPannetier opened this issue Feb 14, 2024 · 0 comments

Comments

@TheoPannetier
Copy link
Contributor

TheoPannetier commented Feb 14, 2024

Depends on

Before doing this issue, the issue above will need to besolved first!

// 68 A player has a hair color
    {
        player p;
        // A player's hair is black by default
        const color black; // tune the input as needed to get the right color
        assert(p.get_hair_color() == black);

        // Hair color can be set at construction
        const color red;
        p = player(red);
        assert(p.get_hair_color() == red);

        // Hair color can be set e.g. through options
        const color white;
        assert(p.get_hair_color() == white);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants