Skip to content

Commit

Permalink
unused changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Cullinane committed Feb 15, 2024
1 parent 2bbd650 commit e58b989
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "prisoner"
authors = ["Ian Cullinane <ian@iancullinane.com>"]
description = "A library for simulating \"The Prisoner's Dilemna\""
version = "0.6.2"
version = "0.6.3"
homepage = "https://github.com/iancullinane/prisoner-rust"
repository = "https://github.com/iancullinane/prisoner-rust"
keywords = ["terminal","game", "simulation"]
Expand Down
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@
//! Providing more than one round initiates a "tournament", where round-robin
//! will occur per number of rounds.
//!
use block_id::{Alphabet, BlockId};
use rand::{thread_rng, Rng};
use std::cmp::Eq;

pub mod entity;
use crate::entity::{Entity, Personality};

/// Outcome represents results of the game. There can only be these four
/// results. Different scoring implementations of functions can be applied.
Expand Down
13 changes: 0 additions & 13 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use clap::Parser;
use prisoner::entity;
use prisoner::entity::Player;
use std::io;
use tabled::{Style, Table};
// https://brson.github.io/rust-anthology/1/effectively-using-iterators.html
Expand All @@ -23,18 +22,6 @@ struct Args {

pub mod game;

// fn main() {
// // clap
// let args = Args::parse();
// let mut players = prisoner::make_players(args.players);
// prisoner::play_game(&mut players, args.rounds.unwrap_or(1));
// let output_table = Table::new(players)
// .with(Style::rounded())
// // .with(Modify::new(Rows::single(1)).with(Border::default().top('x')))
// .to_string();
// print!("{}", output_table)
// }

fn main() {
// ...
let args = Args::parse();
Expand Down

0 comments on commit e58b989

Please sign in to comment.