Objects First With Java A Practical Introduction Using Bluej 5th Edition Barnes Solutions Manual download
Objects First With Java A Practical Introduction Using Bluej 5th Edition Barnes Solutions Manual download
https://testbankfan.com/product/objects-first-with-java-a-
practical-introduction-using-bluej-5th-edition-barnes-solutions-
manual/
https://testbankfan.com/product/objects-first-with-java-a-
practical-introduction-using-bluej-6th-edition-barnes-solutions-
manual/
https://testbankfan.com/product/big-java-early-objects-5th-
edition-horstmann-solutions-manual/
https://testbankfan.com/product/starting-out-with-java-early-
objects-6th-edition-gaddis-solutions-manual/
https://testbankfan.com/product/starting-out-with-java-from-
control-structures-through-objects-5th-edition-tony-gaddis-
solutions-manual/
Big Java Early Objects 5th Edition Horstmann Test Bank
https://testbankfan.com/product/big-java-early-objects-5th-
edition-horstmann-test-bank/
https://testbankfan.com/product/starting-out-with-java-from-
control-structures-through-objects-5th-edition-tony-gaddis-test-
bank/
https://testbankfan.com/product/starting-out-with-java-from-
control-structures-through-objects-7th-edition-gaddis-solutions-
manual/
https://testbankfan.com/product/starting-out-with-java-from-
control-structures-through-objects-6th-edition-gaddis-solutions-
manual/
https://testbankfan.com/product/starting-out-with-java-early-
objects-6th-edition-gaddis-test-bank/
Exercise 6.1
Exercise 6.2
The descriptions below are taken from the documentation in the source code of the
classes
Parser:
This parser reads user input and tries to interpret it as an "Adventure" command.
Every time it is called it reads a line from the terminal and tries to interpret the line as
a two-word command. It returns the command as an object of class Command.
The parser has a set of known command words. It checks user input against the
known commands, and if the input is not one of the known commands, it returns a
command object that is marked as an unknown command.
Game:
This class is the main class of the "World of Zuul" application.
To play this game, create an instance of this class and call the "play" method.
This main class creates and initializes all the others: it creates all rooms, creates the
parser and starts the game. It also evaluates and executes the commands that the
parser returns.
Command:
This class holds information about a command that was issued by the user. A
command currently consists of two strings: a command word and a second word (for
example, if the command was "take map", then the two strings obviously are "take"
and "map").
The way this is used is: Commands are already checked for being valid command
words. If the user entered an invalid command (a word that is not known) then the
command word is <null>.
If the command had only one word, then the second word is <null>.
CommandWords:
This class holds an enumeration of all command words known to the game. It is used
to recognize commands as they are typed in.
Room:
A "Room" represents one location in the scenery of the game. It is connected to other
rooms via exits. The exits are labeled north, east, south, west. For each direction, the
room stores a reference to the neighboring room, or null if there is no exit in that
direction.
Exercise 6.5
Add the method printLocationInfo() from Code 6.2 to the class Game. Then
replace the corresponding lines from the method printWelcome() and goRoom() with
a call to the method: printLocationInfo()
Exercise 6.7
/**
* Return a string describing the room's exits, for example
* "Exits: north west".
*/
public String getExitString()
{
String returnString = "Exits: ";
if(northExit != null) {
returnString += "north ";
}
if(eastExit != null) {
returnString += "east ";
}
if(southExit != null) {
returnString += "south ";
}
if(westExit != null) {
returnString += "west ";
}
return returnString;
}
Exercise 6.8
Exercise 6.9
“Returns a Set view of the keys contained in this map. The set is backed by the map,
so changes to the map are reflected in the set, and vice-versa. If the map is modified
while an iteration over the set is in progress (except through the iterator's own remove
operation), the results of the iteration are undefined. The set supports element
removal, which removes the corresponding mapping from the map, via the
Iterator.remove, Set.remove, removeAll, retainAll, and clear operations. It
does not support the add or addAll operations.”
Exercise 6.10
First, a string called returnString is created with the initial text "Exits: ". We will
then add the exits to this string and finally return it. The names of the available exits
are added by retrieving the set of keys from the HashMap of exits. We then iterate
through the set of keys and in each iteration we add the key of the exit to
returnString.
Exercise 6.11
Exercise 6.12
The reference from game1:Game to the outside:Room is changed to the new room
that we have moved into. If we use the command go east the reference will be to
theatre:Room.
Exercise 6.14
See page 216 of the fifth edition for the implementation details.
Exercise 6.15
adding:
else if(commandWord.equals("eat")) {
eat();
}
Exercise 6.17
Exercise 6.18
System.out.println(parser.getCommandList());
And remove the now obsolete showCommands() from Parser (if you implemented
this in Exercise 6.16)
And remove the now obsolete showCommands() from CommandWords (if you
implemented this in Exercise 6.16)
Exercise 6.19
http://www.enode.com/x/markup/tutorial/mvc.html
http://csis.pace.edu/~bergin/mvc/mvcgui.html
For more examples of the MVC pattern look at the Java Swing implementation which
makes heavy use of the MVC pattern.
The MVC pattern is related to the discussion in this chapter because it is a pattern that
decouples objects into three types of objects: Model objects which represent the data;
View objects which handle the display; and Control objects which handle events that
modify the View or Model objects. In this chapter we only discussed the separation of
View and Model - adding another level of decoupling makes the design even more
flexible.
To apply the MVC pattern to the Zuul game, we need to split the application into a
model, view and control. We might do something like this:
Model: The Game and Room classes represent the model. We might split the Game class
into two classes one which represents the model and one which does the rest. The
changes we make to the model while playing the game, is to change the game object's
reference to the current room. Whenever we change this reference the model should
fire an event to all registered listeners (the View).
View: We should create a new class which handles the view of the model - that is,
printing the text to the screen when an update is received from the model.
Controller: As it is now, the control of the game is done from the Game class in the
play() and processCommand(Command command) methods.
An example of Zuul with the MVC pattern applied can be downloaded here: 06-19-
zuul-mvc.zip
Exercise 6.20
See Exercise 6.22. (Although the rooms can hold several items)
Exercise 6.21
Exercise 6.22
Download: 06-22-zuul-with-items.zip
Exercise 6.23
In processCommand() add:
else if (commandWord.equals("back")) {
goBack(command);
}
Introduce a new method enterRoom, which stores the previousRoom. Update the
method goRoom() to use this method.
/**
* Enters the specified room and prints the description.
*/
private void enterRoom(Room nextRoom)
{
previousRoom = currentRoom;
currentRoom = nextRoom;
System.out.println(currentRoom.getLongDescription());
}
Add this method:
/**
* Go back to the previous room.
*/
private void goBack(Command command)
{
if(command.hasSecondWord()) {
System.out.println("Back where?");
return;
}
if (previousRoom == null) {
System.out.println("You have nowhere to go back to!");
}
else {
enterRoom(previousRoom);
}
}
Exercise 6.24
When a second word is typed after back, it prints an error message: "Go where?"
Another case of negative testing: When the game is just started, there is no previous
room. In the above implementation this is handled by printing a message to the user:
"You can't go back to nothing!"
Exercise 6.25
If back is typed in twice you end up in the same room as where you were when you
typed back the first time. Yes this is sensible, but it might be more useful to be able to
go back several steps - see the next exercise.
Exercise 6.26
Download: 06-26-zuul-back.zip
Exercise 6.27
There are many possible tests for the zuul project. It is important to have both positive
and negative tests.
Exercise 6.28
Download: 06-28-zuul-refactored.zip
Exercise 6.29 - 6.33
All the modifications suggested in Exercises 6.29 through 6.33 is implemented in this
project:
Download: 06-33-zuul-with-player.zip
Exercise 6.35
And finally, modify the CommandWord to include the new value LOOK:
Oh, and don't forget to specify the text associated with the command in the
CommandWords constructor:
validCommands.put("look", CommandWord.LOOK);
Exercise 6.36
Using different command words only requires changes in the CommandWords class.
Exercise 6.37
When the command word for help is changed it is NOT changed in the welcome
message.
Exercise 6.38
Almost. You also need to add the functionality of it to the Game class. Compared to
Exercise 6.35 you have one less class to modify in this exercise.
Exercise 6.40
Yes. It is just using the enum itself: CommandWord.HELP. This will return the
command string because toString() has been overridden in CommandWord.
Exercise 6.41
Download: 06-41-zuul-with-timelimit.zip
Exercise 6.42
To implement a trapdoor (one way door), simply remove one of the exits. For
instance, you could remove the exit from the pub to the outside by removing this line:
pub.setExit("east", outside);
Exercise 6.43
Download: 06-43-zuul-with-beamer.zip
Exercise 6.44
Download: 06-44-zuul-with-doors.zip
Exercise 6.45
Download: 06-45-zuul-with-transporter.zip
Exercise 6.46
Download: 06-46-zuul-even-better.zip
Exercise 6.49
Exercise 6.50
The methods in the Math class are static because they implement mathematical
function operations – their results do not depend on an object's state and they always
return the same results given the same arguments. Therefore we do not need an object
with state to use them. It is also more convenient that you do not have to create an
object before calling the method.
Yes, they could have been instance methods, but that would require that you create an
instance of the Math class before you could use the methods. The object would have
no useful mutable state, only methods.
Exercise 6.51
Exercise 6.52
game.play();
}
Exercise 6.54
system.start();
}
Exercise 6.55
b) No, you cannot call an instance method from a static method (at least not without
first creating an object to call it on).
Exercise 6.56
Yes, you can use a static field and the constructor(s) of the class to count the number
of instantiations. If you have more that one constructor, you would need to increase
the count in each of the constructors. This is one way to do it:
public Test()
{
instanceCount++;
}
It is actually possible to avoid the incrementation in each constructor. You can use an
initialiser block which is invoked before the constructor call. This is not a structure
that is used very often, and you might be best off without telling your students about
it. But if someone should ask you about it, here is how it looks:
{
instanceCount++;
}
public Test()
{
}
"Sir, sir!" cried the astonished captain. "It was brought here by
your ward, Lady Elizabeth Howard."
"Elizabeth! Good God!" cried the old man, starting violently. "Her
maid said she was ill--she must have--did you inspect it carefully,
sir?" he asked, checking himself.
"Have you dared, sir," said the admiral, furious with rage, "to thus
derange my plans and disregard my orders, to thwart me, to
interfere between a duly constituted court and its prisoner?" He
stamped his foot and looked fiercely at his son.
"Me as well," said the captain; "upon the deck of my own ship--to
put this dishonor upon me."
"But your ward, my Lord; she is with him," said the captain.
"Before Heaven itself the offence was given," said the admiral,
losing all control over himself in his fury, "and the punishment shall
have equal publicity." The midshipman who had hastened below now
came running on deck in terror.
"There's no one there, my Lord; they've gone, escaped, sir!" he
cried.
"Let him be tried and shot forthwith, then, for gross neglect of
duty in permitting--"
"Worse and worse! You knew they escaped, sir?" said the admiral.
"I did; 'twas to prevent discovery I took his place," replied his
son, bowing. Captain Pearson opened his mouth to speak, but his
superior silenced him with a wave of his hand.
A bitter fight raged in the old man's bosom, but he saw his duty,
and knew it must be done. There was a long and awful pause. When
the admiral spoke again it was in an altered tone; he had regained
his self-control.
"It is just," said Coventry, no less resolutely than his father; "I
expected it. It was for her I did it."
"Sail ho! Light ho! Light ho!" rang out from a dozen rough throats.
"They will be the Bon Homme Richard and the rest of that
scoundrelly pirate squadron, Captain Pearson. I saw them off
Bridlington Bay this afternoon," said the admiral.
"We will go out and meet them at once, with your permission, my
Lord," cried the captain, enthusiastically. "All hands up anchor! Mr.
Pascoe, show the signal for the Scarborough to get under way.
Lively! we have him now, men! This is our chance at last! There's
prize money and honor for you by yonder lights!"
With wild cheers the eager crew broke for their stations. The
capstan bars were shipped and manned, and the clanking pawls
clicked merrily as the men heaved away as lustily as a crew
homeward bound from a foreign station.
"Do I see you still here, sir?" answered the admiral, coldly.
"Let me beg of the man, then," said Coventry, resolutely. "We are
about to engage the enemy. For God's sake, sir, for the love of my
mother, do not condemn me to inaction now! Let me serve as the
humblest volunteer! You shall not regret it."
"Go!" he replied at last. "You are free of any charges until to-
morrow. When next I see you I shall have to prefer them, therefore
let me not look upon your face again, sir. Do you understand?"
"Yes, yes; good-bye, sir!" said the young man, brokenly. "I thank
you and bless you for this. To-morrow I shall plead my cause in a
higher court. Think of me kindly, sir."
"And you have done this work and wrecked yourself for a woman!
You have been a fool, sir; what woman that ever lived was worth it?"
said the admiral, shortly.
"This one," replied his son. "I loved her; I love her still."
"I am glad to hear it," said the captain, his face lighting up. "We
are short a lieutenant; I confide to you the forward division of the
main-deck battery. Do your best with it."
"I hope to serve it well," said the young officer, saluting proudly,
and springing toward his station.
"Man the topsail sheets and halliards, let fall, sheet home, hoist
away!" roared the captain, himself seizing the trumpet. As the broad
folds of canvas dropped from the wide-reaching yard-arms, the
noble ship gathered way and sailed out to try her fortune.
BOOK IV
THE SELFISHNESS OF LOVE
CHAPTER XVI
AS soon as they had drifted some little distance from the Serapis,
O'Neill rose, threw off the boat cloak, and stepped aft around the
oarsman to the stern-sheets of the boat, where Elizabeth sat
motionless, holding the tiller. He knelt down before her.
"I know not!" she answered wildly, seizing the tiller again; "only
away from that awful ship!"
"Who is this man at the oars?" asked her lover, rising and sitting
down by her when he took the tiller from her nervous hands.
"Well, yer Honor," said a low, deep voice, with a smothered laugh
in it, "my name ashore, w'ere I was left by Cap'n Jones t'other night
to look arter you, mought be Smith, or Brown, or any old name; but
yere in this boat it's Price--William P. Price--w'ich is wot my mother
told me, at any rate, though I ain't got no evidence but her word fur
it, an' she's dead, an' God be thanked I see yer Honor alive."
"I found her, please yer Honor," replied the man. "I seed her
Leddyship a-comin' down to the beach, an' I ups and captures a
small boat from the English, w'ich the man'll be awful disappinted
like, w'en he don't find her to-morrow, an' then I ups and offers to
take her off, an' I tells her I knows you, an' we fixed it up, and here
y'are!"
They were not yet so far from the Serapis, even by this time, but
that the quick ear of the girl detected the confusion on her decks:
the shrill piping of the boatswain and his mates, the sharp
commands of the officers, the trampling of many feet, were easily
heard; she clutched her lover nervously, all alert at the thought of a
possible further danger to him.
"Oh!" she whispered, "they are doing something on the ship. Our
escape is discovered. They will come after us!"
"I think they're a-gittin' under way, sir," said the old seaman.
"Listen to the clankin' o' the pawls, yer Honor."
"It'll be fur the Richard an' the rest of 'em. Cap'n Jones, he said
he'd capture them ships afore the mornin' watch, an' if you wasn't
hung afore that time, he'd trice up the whole d--n--w'ich I beg
pardon, yer Leddyship, but he said it--crowd to the yard-arms,
unless they'd let you go free! Our wessels ought to be a-comin' up
from Flamburry putty soon, now. But if I mought make so bold,
w'ere are ye headin' fur now, sir?"
"We head for the Richard, of course," said the young man,
promptly.
"That's w'ere we b'long," said the sailor, joyfully; "I don't want no
fightin' goin' on, an' I ain't there!"
"Nor I," replied O'Neill. "I would put you ashore, Elizabeth, before
we go; but--"
"A fit antagonist even for our great captain," he cried, all his
enthusiasm aroused by the ship, "and nobly handled," he added.
"Mark the discipline; see the order!"
"Ay, sir, that'll be a hard one to take; but we'll take her, never
fear!" said the old seaman, sharing his officer's ungrudging
approbation of their gallant foe.
"How can you speak so?" said the girl. "To me she is nothing but
a prison--a menace--a horror!"
"It may be; death and honor often go hand in hand," he replied
gravely; "but she nears us; you must lie down until she passes."
"Sail ho! Boat ahoy, there!" For a moment the small boat lay right
in the path of light cast by the brilliantly illuminated stern-ports of
the frigate.
"'Tis the prisoner, he that escaped!" shouted a powerful voice.
"Sentry, give him a shot from your piece," cried Captain Pearson
himself, springing on the rail and leaning over toward them. Old
Price shook his fist at the frigate in stout defiance. The sharp crack
of a musket rang out in the air. The bullet seemed to have struck
something forward in the boat; a shudder swept through the little
craft, a hoarse, frightful cry quivered through the night, there was
splash, the boat struck something, and that something, whatever it
was, rasped along her keel as she drove ahead.
"Clear away the second cutter," cried another voice on the frigate.
"Keep all fast!" shouted Pearson. "We have bigger game to-night,"
and then he hollowed his hand and cried out as the Serapis drew
rapidly away,--
"What mean you? Are you hurt; are you wounded?" she cried.
"It was he," added O'Neill, gravely. "He was hit by the first shot,
and went overboard. Did you not feel him strike the keel?"
"Is there no hope for him?" she queried anxiously. "Could we not
put back and seek him?"
"But what come what may," she added, looking up resolutely, with
all the selfishness of love, "I have you, at least, and we are together
again."
They were out of the harbor now; and while the Serapis was
stretching along to the northeast to gain an offing, with the
Scarborough some distance ahead of her, and to leeward, the lighter
draft of the small boat permitted O'Neill to head her directly for the
oncoming American ships, whose lights, and the ships themselves,
were now plainly visible in the moonlight.
CHAPTER XVII
Differing Standards
"The battle which will take place to-night yonder between those
ships decides my fate. I hope to God I may arrive in time to take my
part in it! The Richard is fearfully short of officers at best; Landais,
who has the Alliance, is crazy and a coward; Cottineau in the Pallas
is an unknown quantity, and the rest have fled. Jones has only
Richard Dale and a lot of midshipmen with him upon whom he can
absolutely depend, and there are over two hundred prisoners in the
hold. He needs me. If this breeze hold on, I think we may intercept
the Richard before the battle is joined. Pray, dearest, as never
before, for the success of our arms! It means life, and you, for me."
"It means life for me as well," she answered, nestling against him
and nerving herself up to the inevitable confession. How he would
take it she did not know, or rather she would not permit herself to
say. She was conscious only of an impelling necessity to tell him the
whole story, though she had deliberately waited until she believed he
could do nothing.
"Ah, yes, 'tis sweet of you to say so, but not the same. Me they
will hang, but not you," he answered fondly.
"Yes, they will," she replied. "I--I--I must confess it to you before
we go further; it weighs upon me. I also am guilty."
"'Twas for you--for you I did it--reproach me not; nay, you shall
not!" she cried, on fire to defend herself and her love, now the truth
was told. "Captain Jones said six hours' delay and you were saved.
There was no other way. I begged, implored, entreated the admiral--
he left me; went away--I saw the man fixing that block--the rope--I
ran to him to make one more appeal--he was not there. On his desk
was an order giving me permission to see you, which he had
intended to give me and had refused at the last moment and left
unsigned. His watch was there and his seal. I added the rest and
signed and sealed it myself; do not shrink from me!" she pleaded
with changed mood again. "Your anger--your disapproval--kills me.
Is there no excuse that you can find for me?" Her appeal was so
tender, her affection so apparent, she was her own justification.
"I knew you would not like it," she answered simply, "but there
was no other way. I confess I was terrified when Edward--"
"And Coventry?"
"He took it and looked at it, looked at me--I had forgotten him, I
must confess,--" she went on brokenly,--"and then he handed it back
to Captain Pearson and--and said it was correct--the signature, I
mean."
"He knew, think you?" asked her lover, with deadly calmness.
"Edward took his place--I might as well tell you all now,"
continued the girl, desperately.
"No," she replied, in alarm; "I never thought. They will not harm
him. He is the son of the admiral--what is it?"
"They will shoot him, or hang him like a dog to the very yard-arm
prepared for me!" he answered with stern emphasis.
"No, no! It is not possible!" she cried, appalled at the naked fact.
"Ay, but it is," he replied; "and it is through your actions, and my
blind acquiescence therein, that this honorable gentleman is done to
death. This puts another face on the whole thing. You have made
me a craven; I am dishonored, his life is sacrificed for me!"
"I did not mean to do it; I did not know," she wailed, stricken to
the heart by his bitter reproach.
"Ay, but you should have known; but when women meddle in
affairs of state the consequences oft exceed their narrow views. Pray
God, there may yet be time to rectify the frightful happening," said
O'Neill, bitterly, putting the helm hard over as he spoke. The boat
swept around, the sail gybed, and they headed for the northeast.
"For what?"
"I knew--I knew it would be so," she whispered. "I loved him,"
she murmured, turning away, "I have sacrificed everything for him,
and he repudiates, reproaches me. O my God, why hast thou
forsaken me!" she wailed in unconscious imitation of a greater
Sufferer. She drew away from him and knelt down in the boat, and
buried her face in her hands, leaning upon the weather gunwale. He
looked at her a moment, and before the pathetic abandonment of
her grief his anger melted. She was a woman; with her, love was all.
He did not wonder. The experiences of the past few days would
have killed any ordinary woman. How heroic she had been! With
what abandon she had put aside everything for the purpose of
saving him! She had hesitated at nothing. His love for her was
measured by his honor; hers for him was boundless. 'Twas ever so;
and he had reproached her, spoken harshly to her, upbraided her,
turned away from her! How could he have been so cruel! she was so
young, his heart yearned over her. He vowed that if God did permit
them to escape from the perils which environed them, he would
make up to her for every unkind word spoken, every reproach, every
cutting glance, by an eternity of devotion.
The night, the ocean, the loneliness, impressed him. What had he
ever done to be so blessed in the love of this noble woman? His life,
as he had said, had been an idle one. In the courts he had played at
hearts as he had played at war on the ships for the fun of the game.
With her a serious purpose had entered his life and was before him.
The silence of the night was broken only by the soft splash of the
waves, as the little boat rocked gently through them. The gentle
wind grew fainter and fainter; presently the flap of the idle sail
against the mast apprised him that it had gone.
The white Serapis and her consort were far, far ahead, going fast
and leaving a long white wake across the sea. They seemed to have
kept the breeze which had failed the small boat. Coming up from the
southward he could see the black shapes of the Richard and her
attendant ships. What would he have given to be upon the deck by
the side of that dauntless captain! But even could he approach the
two ships, that privilege would be denied him, for honor demanded
that he present himself upon the deck of the Serapis without delay.
It might be that it would be too late even then to save Coventry, but
he would go and do his best. When the boat lost way, he sat a
moment in indecision. He was so loath to awaken the tired girl, but it
was necessary. Gently he raised her head.
"I cannot help it," she answered simply. "I think only of you. Now
if I could go back alone and take his place and let you go free, I
would cheerfully do that."
"How is that?"
"I shall row," he said quietly. "Will you take the tiller?"
"No!" she replied defiantly, folding her arms. "I will not help you
at all!"
"I will not, I tell you!" she said. "Frankly, I do not wish to. What is
Edward, what are those ships, what is the whole wide world to me
beside your safety?"
"I must do it alone as best I can, then," said O'Neill, leaving her
side and going forward and unstepping the mast and thrusting out
the oars, which he handled with the skill of long practice and strong
arms. The difference of speed between the boat and the two ships
was now of course greater than before.
"Why fatigue yourself unnecessarily?" she said to him at last, after
he had been rowing for some time. "You gain nothing; 'tis useless."
BOOK V
IN THE HELL OF BATTLE, ALL
CHAPTER XVIII
"Very good, sir," said the little man, nodding his head but not
turning toward his executive officer. "Look yonder," he added,
pointing ahead and toward the shore. "What do you make that, sir?"
"That will be the Pallas, of course," said Dale, as his eye fell upon
a smaller ship which was following the Bon Homme Richard. "And
the Vengeance, sir?"
"Upon me--upon all of us," replied Dale, gallantly, "to the death
itself!"
"I know it," said the captain, smiling and laying his hand
affectionately upon the young man's shoulder. "They are very young,
though," he continued gravely, "for such desperate work as this
promises to be, but they are brave hearts and true. They will do
their best, I doubt not."
"Any place which enables him to fight the enemy is a good place
for a soldier, my captain. I am at Lieutenant Dale's service," replied
the gallant old soldier.
"You, vicomte, and gentlemen," said Jones, turning to De
Chamillard, who was attended by several subalterns, "will take
charge of the soldiers on the quarter-deck and forecastle. I desire a
continuous small-arm fire to play upon the decks and tops of the
English ships."
"Remember, gentlemen," said Jones, his face lighting, "'tis for the
honor of America--and of France. Mr. Brooks," he said to an alert
young midshipman who was acting as his signal officer and aide,
"signal the Pallas to edge off to the east and engage the smaller ship
of the enemy. The big fellow is our game, messieurs. See! they are
forming line ahead and are waiting for us. Brave fellows!
Quartermaster," he cried, stepping to the break of the poop and
looking down at the old seaman and his mates stationed at the
wheel, "d'ye see those two ships?"
"Ay, ay, sir," answered the veteran tar, shading his eyes with his
hand and peering eagerly ahead; "I sees 'em, yer Honor."
"That's well. The one ahead, nearest the shore, is our mark. I
intend to round to on her port bow. Mind your course!"
"O'Neill, O'Neill!" cried one and another, the brave Irishman being
a great favorite with all.
"I enjoin upon you the utmost vigilance and care. Supplement
your inexperience by redoubled effort. Be as brave as youths and as
cool as veterans. Give implicit obedience to the orders you receive
from Mr. Dale, Mr. Stacey, or from me, and exact the same
compliance with your orders from your men. They are a hard lot to
handle; don't lose control of them." He paused a moment, scanning
the intent faces of the lads close about him, and then continued:
"Remember, too, we have more than one foe to fight,--the prisoners
below, the enemies yonder on the sea, and disobedience in our own
squadron. Who keeps guard over the prisoners in the hold?"
"Yes, sir," gravely answered the boy, awed by the emphasis of the
captain's manner.
"You, Mr. Mayrant, with Mr. Mease the purser and Mr. Brooks, will
remain on deck with Mr. Stacey and me," continued the captain.
"You, Mr. McCollin, will take charge of the old eighteen-pounders on
the berth-deck. You, too, have a post of danger! Be careful of them!
I distrust them greatly, yet they must be tried."
"Ay, ay, sir. Thank you, sir," said the young midshipman, delighted
at being thus distinguished.
The sun had set for some time, and night had long since fallen
over the sea. The lighthouse on Flamborough Head was sending out
a great beam of warning from that jutting point. Far on the horizon a
silvery brightness had spread itself in the heavens, bespeaking the
harvest moon, the burnished rim of which even before sunset had
leaped into being on the edge of the water. Lights twinkled here and
there on the English ships before them and crowned the hills of the
distant town and harbor. Battle lanterns were lighted between decks
on the Richard, the yellow flickering radiance from which was
reflected from the sinewy, half-naked, sweat-covered bodies of the
stalwart men at their quarters, as the captain walked through the
crew.
The watches had been piped to supper earlier than usual, and
afterward a double ration of grog had been served out. The men
were in good spirits, and good spirits in them! The captain carefully
examined every part of the ship. The young midshipmen who filled
the unwonted stations, evidently deeply impressed by their
opportunities and responsibilities, were pacing restlessly up and
down, eagerly scrutinizing every detail of their several commands.
On the berth-deck, standing before the hatch which led into the hold
in which over two hundred English prisoners were confined, the
commodore found young Payne, attended by the master-at-arms,
two American seamen, and three French soldiers, keeping guard.
"Ah! I am glad to see you at your station," said the captain,
raising his voice, as the young midshipman, full of pride, saluted
him. "You remember my orders, sir, which were to shoot the first
man who shows his head above the hatch?"
"Ay, ay, sir. I'll do it; never fear," answered the lad, in his boyish
treble.
"They shall not be!" answered Payne, resolutely. "If the ship goes
down, they go with it!"
"I shall not forget, sir," replied the boy, saluting proudly.
"Do what you can," said Jones, turning to McCollin,--"do what you
can with the old eighteens."
"I know that, sir," said Jones, glancing approvingly from him to
the little groups of half-naked men clustered about the guns, the
sweat streaming from their muscular bodies in the heat of the
narrow, confined quarters, "and you have the men with you who will
back you up."
A hoarse cheer which resounded throughout the dim recesses of
the berth-deck bespoke the hearty acquiescence of the men in their
captain's shrewd estimate of their qualities.
CHAPTER XIX
Anything less like a war vessel could hardly be imagined. The Bon
Homme Richard had been an old-fashioned, high-pooped East
Indiaman with a towering forecastle. This antiquated makeshift,
formerly called the Duc de Duras, had been turned over to Jones for
a ship-of-war through the grudging kindness of France. It was the
best ship Franklin and the other commissioners of the new American
Republic could procure for their greatest sea captain. Jones, out of
compliment to Franklin, author of the "Poor Richard" papers, had
renamed her; the name was the only thing new about her. She had
been pierced for thirty-six guns, twenty-eight twelve-pounders on
the main-deck, and eight nine-pounders on the quarter-deck and
forecastle. In utter desperation at her entire inadequacy, Jones had
recourse to the dangerous experiment, not often resorted to, of
mounting six eighteen-pounders in ports pierced for them on the
berth-deck, and of course very near the water line. The guns were
all of an obsolete pattern and much worn by use, the eighteen-
pounders being especially bad; as dangerous, in fact, to friends as
foes. Bad as they were, they were all he could obtain, and, with
characteristic determination, Jones resolved to make the best of
them.
The ship herself was so old and rotten that she was not even fit
for an ordinary merchant cruise, much less prepared for the shocks
of battle. Through an unfortunate combination of circumstances, all
of her senior officers were absent except Dale, the first lieutenant,
Stacey, the sailing-master, and Mease, the purser. Among that half of
her crew who were soldiers, many had scarcely yet acquired their
"sea-legs," and some of them were actually seasick during the
battle! The Serapis, with which they were about to engage and to
which they were rapidly drawing near, was a brand-new, double-
banked frigate, mounting fifty guns on two covered and one
uncovered decks, twenty eighteen-pounders, twenty nines, and ten
sixes. She was manned by three hundred and fifty well-drilled able
seamen and commanded by one of the best officers in the English
navy, who was ably seconded by a full quota of capable and
experienced subordinates.
The men understood this, too. There is nothing your real hard-
bitten dare-devil, your imprudent ruffian, likes so much as a man
who is not afraid of him and who will be his master. Your ruffian