Skip to content

Commit 39fde9d

Browse files
Merge branch 'master' into ehancement/731/take2
2 parents 6562433 + c4eeb37 commit 39fde9d

20 files changed

Lines changed: 39 additions & 32 deletions

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [16.6.0] - unreleased
4+
5+
### Changed
6+
- `Game.comment` has been renamed to `Game.description`
7+
8+
39
## [16.5.1] - unreleased
410

511
### Fixed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
<h1 style="text-align: center;">
2-
<img src="https://raw.githubusercontent.com/gambitproject/gambit/master/doc/_static/gambit.png"
3-
width="300" alt="Gambit logo">
4-
</h1>
1+
![Logo](doc/_static/Gambit_logo_landscape_green_font_no_outline.png)
52
<br/>
63

74
![Latest stable version](https://img.shields.io/github/v/release/gambitproject/gambit?filter=!*a*&label=Latest%20stable%20version)
98.9 KB
Loading

doc/_static/gambit.png

-8.62 KB
Binary file not shown.

doc/_templates/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
<div style="background-color: white; text-align: center; padding: 10px 10px 15px 15px; align-items: center;">
1616
<a href="https://www.gambit-project.org/"><img src="{{
17-
pathto("_static/gambit.png", 1) }}" border="0" alt="Chadwick" style="width: 12%;"/></a>
17+
pathto("_static/Gambit_logo_landscape_green_font_no_outline.png", 1) }}" border="0" alt="Chadwick" style="width: 12%;"/></a>
1818

19-
<h4 style="color: #cc0000; margin: 0 auto; text-align: center; width: 100%;">Software tools for game theory.</h3>
19+
<h4 style="color: #1a9e7e; margin: 0 auto; text-align: center; width: 100%;">Software tools for game theory.</h3>
2020
</div>
2121
{{ super() }}
2222
{% endblock %}

doc/pygambit.api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Information about the game
9595
:toctree: api/
9696

9797
Game.title
98-
Game.comment
98+
Game.description
9999
Game.is_const_sum
100100
Game.is_tree
101101
Game.is_perfect_recall

src/games/file.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ Game BuildNfg(GameFileLexer &p_parser, TableFileGame &p_data)
440440
// If this looks lke an outcome-based format, then don't create outcomes in advance
441441
Game nfg = NewTable(p_data.NumStrategies(), p_parser.GetCurrentToken() == TOKEN_LBRACE);
442442
nfg->SetTitle(p_data.m_title);
443-
nfg->SetComment(p_data.m_comment);
443+
nfg->SetDescription(p_data.m_comment);
444444

445445
for (auto player : nfg->GetPlayers()) {
446446
player->SetLabel(p_data.GetPlayer(player->GetNumber()));
@@ -865,7 +865,7 @@ Game ReadEfgFile(std::istream &p_stream, bool p_normalizeLabels /* = false */)
865865
ReadPlayers(parser, game, treeData);
866866
if (parser.GetNextToken() == TOKEN_TEXT) {
867867
// Read optional comment
868-
game->SetComment(parser.GetLastText());
868+
game->SetDescription(parser.GetLastText());
869869
parser.GetNextToken();
870870
}
871871
ParseNode(parser, game, game->GetRoot(), treeData);

src/games/game.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void GameRep::WriteNfgFile(std::ostream &p_file) const
229229
}) << std::endl;
230230
}
231231
p_file << "}" << std::endl;
232-
p_file << std::quoted(GetComment()) << std::endl << std::endl;
232+
p_file << std::quoted(GetDescription()) << std::endl << std::endl;
233233

234234
for (auto iter : StrategyContingencies(
235235
StrategySupportProfile(std::const_pointer_cast<GameRep>(shared_from_this())))) {

src/games/game.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,9 +888,9 @@ class GameRep : public std::enable_shared_from_this<GameRep> {
888888
virtual void SetTitle(const std::string &p_title) { m_title = p_title; }
889889

890890
/// Get the text comment associated with the game
891-
virtual const std::string &GetComment() const { return m_comment; }
891+
virtual const std::string &GetDescription() const { return m_comment; }
892892
/// Set the text comment associated with the game
893-
virtual void SetComment(const std::string &p_comment) { m_comment = p_comment; }
893+
virtual void SetDescription(const std::string &p_comment) { m_comment = p_comment; }
894894

895895
/// Return the version number of the game. The version is incremented after each
896896
/// substantive change to the game (i.e. not merely involving labels)

src/games/gametable.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ void GameTableRep::WriteNfgFile(std::ostream &p_file) const
469469
}) << std::endl;
470470
}
471471
p_file << "}" << std::endl;
472-
p_file << std::quoted(GetComment()) << std::endl << std::endl;
472+
p_file << std::quoted(GetDescription()) << std::endl << std::endl;
473473

474474
p_file << "{" << std::endl;
475475
for (auto outcome : m_outcomes) {

0 commit comments

Comments
 (0)