Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: rec/rect.cpp
- Revision:
- 19:362ad1cd6d4a
- Parent:
- 17:7acfc8a0c277
- Child:
- 24:14489d259ffb
- Child:
- 27:eab2cf10554e
diff -r 78001ecadcb2 -r 362ad1cd6d4a rec/rect.cpp
--- a/rec/rect.cpp Sat Apr 28 21:12:33 2018 +0000
+++ b/rec/rect.cpp Sat Apr 28 21:59:45 2018 +0000
@@ -41,6 +41,11 @@
{
rect_score++;
}
+
+void rect::minus_score()
+{
+ rect_score--;
+}
int rect::get_score()
{
return rect_score;