Three men who met playing video games online were arraigned on weapons charges and an assault and battery charge Tuesday after police say they dressed in face masks and hoods while hanging white nationalist propaganda in East Boston on Friday night.

Tylar Larson, 18 of Rochester, New York, Christopher Hood, 20 of Malden, and Matthew Wolf, 26 of Lowell, were arraigned in East Boston District Court on Tuesday. The three men were released on $500 cash bail and declined to speak with reporters.

During roll call on Friday, Boston police were warned of a group of young men hanging posters for Patriot Front, which is labeled a hate group by the Southern Poverty Law Center.

Patriot Front is a white nationalist group that broke off from white supremacist group Vanguard America following the deadly Unite the Right rally in Charlottesville, according to the Southern Poverty Law Center.

At about 9:45 p.m. Friday police saw a group of 10 men in Maverick Square wearing hoods and masks.

“It was a clear night, about 50 degree and they thought it was a little bit odd to be wearing that clothing at that time,” Assistant District Attorney Jillian Bannister said in court. When police approached the men they noticed they had a can of what appeared to be spray paint, but was later identified as spray adhesive.

Larson was holding the can and posters with the phrases “Reclaim America,” “your speech will be hate speech,” “to ourselves and our prosperity,” and “PATRIOTFRONT.US,” according to a police report filed in court Tuesday.

Police asked the men to produce identification. Wolf was “uncooperative and unwilling” to identify himself, police said.

“When the situation was explained to him that it was of concern that a group of their size was walking ... wearing masks Mr. Wolf remained uncooperative” and asked if he was under investigation, police wrote in the report.

Wolf took out his wallet, but when a police officer reached to grab it he slapped the officer’s hand away. Wolf is a former member of the National Guard, according to his lawyer.

Police then began a pat and frisk the men. Larson was carrying brass knuckles and Hood was carrying a spring loaded 5-inch knife, police said. Larson also had a wood handled trowel on him, police said.

Three 18-year-old men and one 19-year-old man were also identified as part of the group, but were not charged, according to the police report.

In court Tuesday the men were quiet and kept their heads down during arraignment.

Larson declined to comment through his lawyer.

Nitin Dalal, a lawyer who represents Larson, called the incident an example of “youthful stupidity.” Dalal also represented Hood during the arraignment Tuesday. He said Larson was remorseful.

The three men met while playing Xbox, he said.

“They are loose acquaintances who met each other playing Xbox and other video games,” Dalal said in an interview with reporters. “One of them started spouting off nonsense about how they feel about immigrants and stuff and it just carried its own stream. They ended up in East Boston like a bunch of dumb kids walking at night to try to get into trouble.”

The three men were ordered to return to court on March 26.

Outside of the courthouse reporters asked Hood and Wolf if they had anything to say to community members who were insulted by their flyers.

Hood crossed the street without speaking and Wolf covered his face with a raincoat.