Unable to add to object prototype
<p>I have this Object Literal: </p>

<pre><code>var RPSPlayer = {....}
</code></pre>

<p>and I want to make new "children" from this object by using:</p>

<pre><code>var player1 = new Player(randomPlay);
</code></pre>

<p>When I try to add a function to a <code>Player</code> prototype like this:</p>

<pre><code>function Player(play) {
    this.prototype.play = play;
    return play;
};
</code></pre>

<p>I get an error.</p>

<p><code>play</code> is a function returning a string which Player function gets as a parameter.</p>

<p>The problematic line is:</p>

<pre><code> this.prototype.play = play;
</code></pre>
