aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2018-12-27 21:55:01 -0800
committerPaul Eggert2018-12-27 21:55:22 -0800
commit8167316fd6406adbeb8fe91db9ee59e2f47bddb0 (patch)
tree557d6d2ccb71e68cb2b11df5876bc9b03b7c1a59
parent47d656f6024786dfdaf53be1c6db6a47b8666b7f (diff)
downloademacs-8167316fd6406adbeb8fe91db9ee59e2f47bddb0.tar.gz
emacs-8167316fd6406adbeb8fe91db9ee59e2f47bddb0.zip
Improve motivations in gomoku messages
* lisp/play/gomoku.el (gomoku-terminate-game): Don't make six-year-old children cry (Bug#33803).
-rw-r--r--lisp/play/gomoku.el28
1 files changed, 14 insertions, 14 deletions
diff --git a/lisp/play/gomoku.el b/lisp/play/gomoku.el
index 6ce2750f860..32b29b70f41 100644
--- a/lisp/play/gomoku.el
+++ b/lisp/play/gomoku.el
@@ -656,48 +656,48 @@ that DVAL has been added on SQUARE."
656 ((eq result 'emacs-won) 656 ((eq result 'emacs-won)
657 (setq gomoku-number-of-emacs-wins (1+ gomoku-number-of-emacs-wins)) 657 (setq gomoku-number-of-emacs-wins (1+ gomoku-number-of-emacs-wins))
658 (cond ((< gomoku-number-of-moves 20) 658 (cond ((< gomoku-number-of-moves 20)
659 "This was a REALLY QUICK win.") 659 "I won... I hope you like the game as you get better.")
660 (gomoku-human-refused-draw 660 (gomoku-human-refused-draw
661 "I won... Too bad you refused my offer of a draw!") 661 "I won... Too bad you refused my offer of a draw!")
662 (gomoku-human-took-back 662 (gomoku-human-took-back
663 "I won... Taking moves back will not help you!") 663 "I won... It's OK to take back more moves next time.")
664 ((not gomoku-emacs-played-first) 664 ((not gomoku-emacs-played-first)
665 "I won... Playing first did not help you much!") 665 "I won... Use C-c C-b to take back a move on second thought.")
666 ((and (zerop gomoku-number-of-human-wins) 666 ((and (zerop gomoku-number-of-human-wins)
667 (zerop gomoku-number-of-draws) 667 (zerop gomoku-number-of-draws)
668 (> gomoku-number-of-emacs-wins 1)) 668 (> gomoku-number-of-emacs-wins 1))
669 "I'm becoming tired of winning...") 669 "I won... It might be time take a break before trying again.")
670 ("I won."))) 670 ("I won.")))
671 ((eq result 'human-won) 671 ((eq result 'human-won)
672 (setq gomoku-number-of-human-wins (1+ gomoku-number-of-human-wins)) 672 (setq gomoku-number-of-human-wins (1+ gomoku-number-of-human-wins))
673 (concat "OK, you won this one." 673 (concat "OK, you won this one."
674 (cond 674 (cond
675 (gomoku-human-took-back 675 (gomoku-human-took-back
676 " I, for one, never take my moves back...") 676 " For a bigger challenge, play without taking moves back.")
677 (gomoku-emacs-played-first 677 (gomoku-emacs-played-first
678 ".. so what?") 678 " Congratulations!")
679 (" Now, let me play first just once.")))) 679 (" For a bigger challenge, let me play first."))))
680 ((eq result 'human-resigned) 680 ((eq result 'human-resigned)
681 (setq gomoku-number-of-emacs-wins (1+ gomoku-number-of-emacs-wins)) 681 (setq gomoku-number-of-emacs-wins (1+ gomoku-number-of-emacs-wins))
682 "So you resign. That's just one more win for me.") 682 "I see that you resigned. Better luck next time.")
683 ((eq result 'nobody-won) 683 ((eq result 'nobody-won)
684 (setq gomoku-number-of-draws (1+ gomoku-number-of-draws)) 684 (setq gomoku-number-of-draws (1+ gomoku-number-of-draws))
685 (concat "This is a draw. " 685 (concat "This is a draw. "
686 (cond 686 (cond
687 (gomoku-human-took-back 687 (gomoku-human-took-back
688 "I, for one, never take my moves back...") 688 " For a bigger challenge, try without taking moves back.")
689 (gomoku-emacs-played-first 689 (gomoku-emacs-played-first
690 "Just chance, I guess.") 690 "Wow, that was a long game. We both played well.")
691 ("Now, let me play first just once.")))) 691 (" For a bigger challenge, let me play first."))))
692 ((eq result 'draw-agreed) 692 ((eq result 'draw-agreed)
693 (setq gomoku-number-of-draws (1+ gomoku-number-of-draws)) 693 (setq gomoku-number-of-draws (1+ gomoku-number-of-draws))
694 (concat "Draw agreed. " 694 (concat "Draw agreed. "
695 (cond 695 (cond
696 (gomoku-human-took-back 696 (gomoku-human-took-back
697 "I, for one, never take my moves back...") 697 " For a bigger challenge, try without taking moves back.")
698 (gomoku-emacs-played-first 698 (gomoku-emacs-played-first
699 "You were lucky.") 699 "Good game.")
700 ("Now, let me play first just once.")))) 700 (" For a bigger challenge, let me play first."))))
701 ((eq result 'crash-game) 701 ((eq result 'crash-game)
702 "Sorry, I have been interrupted and cannot resume that game..."))) 702 "Sorry, I have been interrupted and cannot resume that game...")))
703 (gomoku-display-statistics) 703 (gomoku-display-statistics)